Signal processing method and apparatus, and electronic device and storage medium
By embedding or de-embedding the signal processing device and correcting the digital filter coefficients, the measurement deviation problem caused by signal transmission path distortion is solved, and the accuracy of signal measurement and precise matching of trigger position are achieved.
Patent Information
- Application Number
- PCT/CN2025/143431
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-07
- Filing Date
- 2025-12-18
- Publication Date
- 2026-11-12
AI Technical Summary
Existing signal processing devices cause deviations between measured and true values due to reflection, loss, and distortion along the signal transmission path, making it difficult to accurately recover the original signal.
The first and second triggers are performed by storing the signal. The correlation between the first trigger time domain position of the second trigger and the output signal is adjusted. Embedding or de-embedding processing is used to correct the distortion in the signal path. The phase shift is corrected by using digital filter coefficients to achieve alignment of the time domain position.
It improves the accuracy of signal measurement, ensures the accuracy of the output signal trigger point position and the matching of the trigger time, and reduces measurement errors.
Smart Images

Figure CN2025143431_12112026_PF_FP_ABST
Abstract
Description
Signal processing methods, devices, electronic equipment and storage media
[0001] Related applications
[0002] This application claims priority to Chinese patent application filed on May 7, 2025, with application number 202510583295.8, entitled “Signal Processing Method, Apparatus, Electronic Device and Storage Medium”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of signal measurement technology, and in particular to a signal processing method, apparatus, electronic device, and storage medium. Background Technology
[0004] Signal processing devices such as digital oscilloscopes, signal analyzers, protocol analyzers, and modular electronic measuring instruments can measure signals. These devices introduce the signal to be measured through transmission paths such as cables, probes, and analog circuits. In reality, signals experience reflection, loss, and distortion along the transmission path, causing deviations between the measured value and the true value. Embedding and de-embedding are techniques used to correct distortions or influences in the signal path (such as those from analog front-ends, cables, probes, or other circuits) to restore or reproduce the original signal. Summary of the Invention
[0005] In view of the above, embodiments of this disclosure provide a signal processing method, apparatus, electronic device, and storage medium.
[0006] According to a first aspect of the present disclosure, a signal processing method is provided, the method comprising:
[0007] Store the stored signal obtained by triggering the input signal for the first time;
[0008] Based on the stored signal, a first processing and a second trigger are performed, aligning the first trigger time domain position of the second trigger with the output signal associated with the second trigger time domain position of the second trigger, wherein the output signal is obtained by performing the first processing on the stored signal;
[0009] The first process includes an embedding process associated with the input signal transmission path or a de-embedding process associated with the input signal transmission path.
[0010] In some embodiments, aligning the first trigger time-domain position and the output signal to the second trigger time-domain position includes:
[0011] The stored signal is processed to obtain a first processed signal, and the first processed signal is triggered in the second way to determine the signal trigger position of the first processed signal.
[0012] The signal to be output is obtained from the stored signal according to the signal trigger position;
[0013] The signal to be output is subjected to the first processing to obtain an output signal, so that the first trigger time domain position of the second trigger and the output signal are aligned with the second trigger time domain position of the second trigger.
[0014] In some embodiments, determining the signal trigger position of the first processed signal includes:
[0015] Determine the storage location corresponding to the discrete point of the first signal triggered by the second trigger in the first processed signal;
[0016] The step of obtaining the signal to be output from the stored signal according to the signal trigger position includes:
[0017] Based on the storage location, the signal to be output is obtained from the stored signal;
[0018] The first processing of the signal to be output to obtain an output signal, so that the first trigger time domain position of the second trigger and the output signal are aligned with the second trigger time domain position of the second trigger, includes:
[0019] Align the second signal discrete point corresponding to the storage location in the output signal with the first trigger time domain location.
[0020] In some embodiments, aligning the first trigger time-domain position and the output signal to the second trigger time-domain position includes:
[0021] The second triggering of the stored signal determines the signal triggering position of the stored signal;
[0022] Based on the signal trigger position, obtain the signal to be output from the stored signal;
[0023] The first processing is performed on the signal to be output to obtain the output signal, wherein the digital filter coefficients used in the first processing are used to correct the phase offset associated with the transmission path in order to align the first trigger time domain position of the second trigger with the second trigger time domain position of the output signal associated with the second trigger.
[0024] In some embodiments, the length of the digital filter coefficients is a first length, and the digital filter coefficients correct for phase offset associated with the transmission path, including:
[0025] By concatenating N of the digital filter coefficients, an extended digital filter coefficient with a second length is obtained, wherein the second length is N times the first length, wherein each digital filter coefficient has one main lobe, and the extended digital filter coefficient has N main lobes, wherein N is an integer greater than or equal to 2.
[0026] Candidate digital filter coefficients with a length of the first length are truncated from the extended digital filter coefficients, wherein the main lobe of the candidate digital filter coefficient is one of the N main lobes of the extended digital filter coefficients, and the main lobe of the candidate digital filter coefficient is located at the middle position in the length direction.
[0027] The candidate digital filter coefficients are used to update the digital filter coefficients.
[0028] In some embodiments, N is 2, and the N digital filter coefficients include the same first digital filter coefficient and second digital filter coefficient; the first digital filter coefficient and the second digital filter coefficient each include 2M-2 discrete points in the time domain;
[0029] The concatenation of N digital filter coefficients to obtain extended digital filter coefficients of the second length includes:
[0030] The second digital filter coefficients are concatenated after the first digital filter coefficients, and the time-domain position of the last discrete point of the first digital filter coefficients overlaps with the first discrete point of the second digital filter coefficients, resulting in extended digital filter coefficients with a length of 4M-3 discrete points.
[0031] The step of truncating candidate digital filter coefficients of length 1 from the extended digital filter coefficients includes the following:
[0032] If the index n of the discrete point of the highest amplitude of the main lobe of the digital filter coefficient is greater than M-1, the discrete points from index n+M-1 to n+3M-3 in the extended digital filter coefficient are determined as candidate digital filter coefficients.
[0033] If the index n of the discrete point of the highest amplitude of the main lobe of the digital filter coefficient is less than M-1, the discrete points from index n-(M-1) to n+M-1 in the extended digital filter coefficients are determined as candidate digital filter coefficients.
[0034] In some embodiments, the storage of the stored signal obtained by first triggering the input signal includes:
[0035] The input signal is triggered for the first time;
[0036] A temporary signal is obtained from the input signal based on the trigger position of the first trigger;
[0037] The stored signal is obtained by interpolating the temporary signal;
[0038] Store the stored signal.
[0039] In some embodiments, aligning the first trigger time-domain position and the output signal to the second trigger time-domain position includes:
[0040] In response to receiving a first selection command on the display interface, the first trigger time domain position of the second trigger is aligned with the second trigger time domain position of the output signal associated with the second trigger.
[0041] According to a second aspect of the present disclosure, a signal processing apparatus is provided, wherein the signal processing apparatus includes:
[0042] The first trigger circuit is configured to trigger the input signal.
[0043] A sampling and storage circuit is configured to store a stored signal obtained by the first triggering circuit performing the first triggering on the input signal;
[0044] The processing circuit is configured to perform a first processing and a second trigger based on the stored signal, aligning a first trigger time domain position of the second trigger with an output signal associated with a second trigger time domain position of the second trigger, wherein the output signal is obtained by performing the first processing on the stored signal;
[0045] The first process includes an embedding process associated with the input signal transmission path or a de-embedding process associated with the input signal transmission path.
[0046] In some embodiments, the processing circuit includes:
[0047] The processing sub-circuit is configured to perform a first processing on the stored signal to obtain a first processed signal.
[0048] The second triggering circuit is configured to trigger the second signal using the first processed signal, and determines the signal triggering position of the first processed signal.
[0049] The sampling and storage circuit is configured to obtain the signal to be output from the stored signal according to the signal trigger position;
[0050] The processing sub-circuit is further configured to perform the first processing on the signal to be output to obtain an output signal, so that the first trigger time domain position of the second trigger and the output signal are aligned with the second trigger time domain position of the second trigger.
[0051] In some embodiments, the second triggering circuit is specifically configured to determine the storage location corresponding to the discrete point of the first signal triggered by the second trigger in the first processed signal;
[0052] The sampling and storage circuit is specifically configured to obtain the signal to be output from the stored signal based on the storage location;
[0053] The processing sub-circuit is specifically configured to align the second signal discrete point corresponding to the storage location in the output signal with the first trigger time domain position.
[0054] In some embodiments, the processing circuit includes:
[0055] The second trigger circuit is configured to trigger the stored signal in a second way, and to determine the signal trigger position of the stored signal.
[0056] The sampling and storage circuit is configured to obtain the signal to be output from the stored signal according to the signal trigger position;
[0057] The processing sub-circuit is configured to perform the first processing on the signal to be output to obtain the output signal, wherein the digital filter coefficients used in the first processing correct the phase offset associated with the transmission path to align the first trigger time domain position of the second trigger with the second trigger time domain position of the output signal associated with the second trigger.
[0058] In some embodiments, the length of the digital filter coefficients is a first length, and the processing sub-circuit is specifically configured as follows:
[0059] By concatenating N of the digital filter coefficients, an extended digital filter coefficient with a second length is obtained, wherein the second length is N times the first length, wherein each digital filter coefficient has one main lobe, and the extended digital filter coefficient has N main lobes, wherein N is an integer greater than or equal to 2.
[0060] Candidate digital filter coefficients with a length of the first length are truncated from the extended digital filter coefficients, wherein the main lobe of the candidate digital filter coefficient is one of the N main lobes of the extended digital filter coefficients, and the main lobe of the candidate digital filter coefficient is located at the middle position in the length direction.
[0061] The candidate digital filter coefficients are used to update the digital filter coefficients.
[0062] In some embodiments, N is 2, and the N digital filter coefficients include the same first digital filter coefficient and second digital filter coefficient; the first digital filter coefficient and the second digital filter coefficient each include 2M-2 discrete points in the time domain;
[0063] The specific configuration of the processing sub-circuit is as follows:
[0064] The second digital filter coefficients are concatenated after the first digital filter coefficients, and the time-domain position of the last discrete point of the first digital filter coefficients overlaps with the first discrete point of the second digital filter coefficients, resulting in extended digital filter coefficients with a length of 4M-3 discrete points.
[0065] If the index n of the discrete point of the highest amplitude of the main lobe of the digital filter coefficient is greater than M-1, the discrete points from index n+M-1 to n+3M-3 in the extended digital filter coefficient are determined as candidate digital filter coefficients.
[0066] If the index n of the discrete point of the highest amplitude of the main lobe of the digital filter coefficient is less than M-1, the discrete points from index n-(M-1) to n+M-1 in the extended digital filter coefficients are determined as candidate digital filter coefficients.
[0067] In some embodiments, the sampling and storage circuit is specifically configured as follows:
[0068] A temporary signal is obtained from the input signal based on the trigger position of the first trigger;
[0069] The stored signal is obtained by interpolating the temporary signal;
[0070] Store the stored signal.
[0071] In some embodiments, the processing circuit is specifically configured as follows:
[0072] In response to receiving a first selection command on the display interface, the first trigger time domain position of the second trigger is aligned with the second trigger time domain position of the output signal associated with the second trigger.
[0073] According to a third aspect of the present disclosure, an electronic device is provided, including a processor, a memory, and an executable program stored in the memory and executable by the processor, wherein the processor executes steps of the signal processing method as described in the first aspect when running the executable program.
[0074] According to a fourth aspect of the present disclosure, a storage medium is provided that stores an executable program thereon, wherein the executable program, when executed by a processor, implements the steps of the signal processing method as described in the first aspect.
[0075] This disclosure provides a signal processing method, apparatus, electronic device, and storage medium. The processing method includes: storing a stored signal obtained by first triggering an input signal; performing a first processing and a second trigger based on the stored signal, aligning a first trigger time-domain position of the second trigger with a second trigger time-domain position of an output signal associated with the second trigger, wherein the output signal is obtained by performing the first processing on the stored signal; wherein the first processing includes embedding processing associated with the input signal transmission path or de-embedding processing associated with the input signal transmission path. Thus, by aligning the first trigger time-domain position of the second trigger with the second trigger time-domain position of the output signal associated with the second trigger, the accuracy of the user in determining the trigger point position of the output signal can be improved, achieving matching between the output signal and the trigger time, and improving signal measurement accuracy. Attached Figure Description
[0076] Figure 1 is a schematic diagram illustrating a real-time signal processing flow according to an exemplary embodiment;
[0077] Figure 2 is one of the schematic diagrams illustrating a non-real-time signal processing flow according to an exemplary embodiment;
[0078] Figure 3 is a schematic flowchart illustrating a signal processing method according to an exemplary embodiment;
[0079] Figure 4a is a schematic diagram of a signal display according to an exemplary embodiment;
[0080] Figure 4b is a schematic diagram of another signal display according to an exemplary embodiment;
[0081] Figure 5 is one of the schematic diagrams illustrating the storage location of discrete points of a signal according to an exemplary embodiment;
[0082] Figure 6 is a second schematic diagram illustrating the storage location of discrete signal points according to an exemplary embodiment;
[0083] Figure 7 is a second schematic diagram illustrating a non-real-time signal processing flow according to an exemplary embodiment;
[0084] Figure 8 is a third schematic diagram illustrating the storage location of discrete signal points according to an exemplary embodiment;
[0085] Figure 9 is a fourth schematic diagram illustrating the storage location of discrete signal points according to an exemplary embodiment;
[0086] Figure 10 is a fifth schematic diagram illustrating the storage location of discrete signal points according to an exemplary embodiment;
[0087] Figure 11 is one of the schematic diagrams of filter coefficients according to an exemplary embodiment;
[0088] Figure 12 is a second schematic diagram of filter coefficients according to an exemplary embodiment;
[0089] Figure 13 is a schematic diagram of the extended filter coefficients according to an exemplary embodiment;
[0090] Figure 14 is one of the schematic diagrams illustrating filter coefficient truncation according to an exemplary embodiment;
[0091] Figure 15 is a second schematic diagram illustrating filter coefficient truncation according to an exemplary embodiment;
[0092] Figure 16 is a schematic diagram of a signal processing device interface according to an exemplary embodiment;
[0093] Figure 17 is a flowchart illustrating another signal processing method according to an exemplary embodiment;
[0094] Figure 18 is a flowchart illustrating another signal processing method according to an exemplary embodiment;
[0095] Figure 19 is a schematic diagram illustrating the composition of a signal processing device according to an exemplary embodiment;
[0096] Figure 20 is a schematic diagram of the composition of another signal processing device according to an exemplary embodiment. Detailed Implementation
[0097] To make the technical solution and beneficial effects of this application more apparent and understandable, a detailed description is provided below by listing specific embodiments. The accompanying drawings are not necessarily drawn to scale, and local features may be enlarged or reduced to more clearly show the details of the local features; unless otherwise defined, the technical and scientific terms used herein have the same meanings as those in the technical field to which this application pertains.
[0098] This disclosure is not exhaustive, but merely illustrative of some embodiments, and is not intended to limit the scope of protection of this disclosure. Unless otherwise specified, each step in a particular embodiment can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a particular embodiment can also be implemented as an independent embodiment, and the order of the steps in a particular embodiment can be arbitrarily interchanged. Furthermore, the optional implementation methods in a particular embodiment can be arbitrarily combined; moreover, the embodiments can be arbitrarily combined, for example, some or all steps of different embodiments can be arbitrarily combined, and a particular embodiment can be arbitrarily combined with the optional implementation methods of other embodiments.
[0099] In each of the disclosed embodiments, unless otherwise specified or in case of logical conflict, the terminology and / or descriptions of the embodiments are consistent and can be referenced by each other. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.
[0100] The terminology used in the embodiments of this disclosure is for the purpose of describing particular embodiments only and is not intended to limit the scope of this disclosure.
[0101] In this disclosure, unless otherwise stated, elements expressed in the singular form, such as "a," "an," "the," "the," "the," "the," "the," "the," "this," etc., can mean "one and only one," or "one or more," "at least one," etc. For example, when using articles such as "a," "an," "the," etc. in translation, the noun following the article can be understood as either a singular or a plural expression.
[0102] In the embodiments of this disclosure, "multiple" refers to two or more.
[0103] In some embodiments, the terms “at least one of”, “one or more”, “a plurality of”, “multiple”, etc., may be used interchangeably.
[0104] In some embodiments, the notation "at least one of A and B", "A and / or B", "A in one case, B in another", "A in one case, B in another", etc., may include the following technical solutions depending on the situation: in some embodiments, A (A is executed regardless of B); in some embodiments, B (B is executed regardless of A); in some embodiments, execution is selected from A and B (A and B are selectively executed); in some embodiments, A and B (both A and B are executed). The same applies when there are more branches such as A, B, C, etc.
[0105] In some embodiments, the notation "A or B" may include the following technical solutions, depending on the situation: in some embodiments, A (execution of A regardless of B); in some embodiments, B (execution of B regardless of A); in some embodiments, execution is selected from A and B (A and B are selectively executed). The same applies when there are more branches such as A, B, C, etc.
[0106] The prefixes "first," "second," etc., used in the embodiments of this disclosure are merely for distinguishing different descriptive objects and do not impose restrictions on the position, order, priority, value, or content of the descriptive objects. The description of the descriptive objects should be found in the claims or the context of the embodiments, and the use of prefixes should not constitute unnecessary restrictions. For example, if the descriptive object is a "field," the ordinal numbers preceding "field" in "first field" and "second field" do not restrict the position or order of the "fields." "First" and "second" do not restrict whether the "fields" they modify are in the same message, nor do they restrict the order of "first field" and "second field." Similarly, if the descriptive object is a "level," the ordinal numbers preceding "level" in "first level" and "second level" do not restrict the priority between "levels." Furthermore, the value of the descriptive object is not limited by ordinal numbers and can be one or more. For example, in "first device," the value of "device" can be one or more. Furthermore, the objects modified by different prefixes can be the same or different. For example, if the object being described is "device", then "first device" and "second device" can be the same device or different devices, and their types can be the same or different. Similarly, if the object being described is "information", then "first information" and "second information" can be the same information or different information, and their content can be the same or different.
[0107] In some embodiments, “including A,” “containing A,” “for indicating A,” and “carrying A” can be interpreted as directly carrying A or indirectly indicating A.
[0108] In some embodiments, terms such as “…”, “determine…”, “in the case of…”, “when…”, “when…”, “if…”, etc. can be used interchangeably.
[0109] In some embodiments, the terms “greater than,” “greater than or equal to,” “not less than,” “more than,” “more than or equal to,” “not less than,” “higher than,” “higher than or equal to,” “not lower than,” and “above” can be used interchangeably, as can the terms “less than,” “less than or equal to,” “not greater than,” “less than,” “less than or equal to,” “not more than,” “lower than,” “lower than or equal to,” “not higher than,” and “below”.
[0110] In some embodiments, devices, etc., can be interpreted as physical or virtual, and their names are not limited to the names recorded in the embodiments. Terms such as “device”, “equipment”, “circuit”, “network element”, “node”, “function”, “unit”, “section”, “system”, “network”, “chip”, “chip system”, “entity”, and “subject” can be used interchangeably.
[0111] Furthermore, each element, each row, or each column in the table of this disclosure can be implemented as an independent embodiment, and any combination of any element, any row, or any column can also be implemented as an independent embodiment.
[0112] For ease of understanding, the following focuses on explaining the terminology used in this embodiment:
[0113] Digital filters: Digital systems or algorithms that perform mathematical operations on discrete-time signals to enhance, suppress, or extract specific frequency components.
[0114] De-embedding: A technical process that restores the true characteristics of the test object by removing parasitic effects (such as errors introduced by cables, connectors, or fixtures) between the measuring device and the test object (such as the signal under test) in a test system.
[0115] Embedded processing: In test analysis, an external circuit (such as a probe, fixture, or cable) is virtually superimposed onto the object under test (such as the signal under test) to simulate its behavior in a real-world environment.
[0116] Unit Impulse Response: refers to the output of a linear time-invariant system under a unit impulse input, and is used to fully characterize the dynamic characteristics of the system.
[0117] The user application's de-embedding function removes the influence of the signal transmission path (such as cable) on the signal. In this way, the signal propagation delay originally caused by the cable length is "removed", and the trigger position of the new signal will appear to be "earlier" relative to the original signal.
[0118] During the embedding process, the influence of the analog circuit network is added, which is equivalent to artificially adding circuit delay to the signal path. The new signal will then exhibit a "hysteresis" characteristic relative to the original signal.
[0119] Depending on the different methods of embedding / de-embedding (embedding or de-embedding), methods can be divided into real-time embedding / de-embedding and non-real-time embedding / de-embedding.
[0120] Specifically, real-time embedding / de-embedding is implemented during signal acquisition, as shown in the real-time embedding / de-embedding process in Figure 1. The input analog signal is converted into a digital signal by the analog front-end to the analog-to-digital converter. The digital signal is immediately sent to the embedding / de-embedding circuit, where hardware acceleration (such as FPGA or ASIC) performs embedding / de-embedding operations on the real-time signal. Then, the sampling and storage circuit and the first trigger circuit receive the signal after the embedding / de-embedding process. In the above real-time embedding / de-embedding method, the signals received by the first trigger circuit and the sampling and storage circuit are the signals after embedding / de-embedding. This means that the trigger position and waveform display are based on the same data, and there will be no misalignment problem between the trigger and the waveform due to embedding / de-embedding. However, the hardware cost of real-time embedding / de-embedding is high. The higher the sampling rate of the oscilloscope, the more necessary it is to use a very large-scale field-programmable gate array (FPGA) chip or a dedicated application-specific integrated circuit (ASIC) chip for processing.
[0121] Non-real-time embedding / de-embedding is implemented after sampling and storage. This process introduces a trigger delay, as shown in Figure 2. The input analog signal is converted into a digital signal by an analog-to-digital converter after passing through an analog front-end. The digital signal is then sent to the first trigger circuit (for the first trigger) and the sampling and storage circuit. The first trigger circuit outputs a control signal (first trigger) to control the behavior of the sampling and storage circuit, which samples and stores the data according to the control signal. The embedding / de-embedding circuit performs mathematical operations on the data stored in the sampling and storage circuit. Typically, when performing a second trigger (for the second trigger), the embedding / de-embedding circuit needs to be bypassed, and the stored data is then subjected to more refined secondary trigger detection to determine a more accurate event location (precise trigger location). Secondary triggering typically processes the stored data, allowing for more complex calculations to achieve greater accuracy. Using the precise location information obtained from the secondary trigger, data segments closely related to the event are extracted from the stored data for subsequent display and analysis. Embedding or de-embedding operations are performed on the extracted data. Finally, the data after embedding / de-embedding is analyzed, and the results or the waveform itself are displayed to the user. At this point, because the data for the secondary trigger is the raw data acquired and stored in the sampling storage circuit, while the data analyzed and displayed by the user is the embedded / de-embedding data, the signal after embedding / de-embedding will have a phase shift (time shift in the time domain). Therefore, the trigger position and the actual analyzed and displayed data will have a certain time difference, i.e., trigger delay. Trigger delay can lead to: 1. Inaccurate trigger position, the trigger point may deviate from the key waveform features set by the user; 2. Mismatch between the captured waveform data and the trigger event; 3. Introducing additional errors in high-precision measurements.
[0122] In one possible implementation, the bypass embedding / de-embedding circuit shown in Figure 2 can be implemented by two data selectors. For example, when the embedding / de-embedding circuit is not bypassed, the data selector selects to send data to the embedding / de-embedding circuit, and when the embedding / de-embedding circuit is bypassed, the data selector selects to send data to the second trigger circuit.
[0123] In one possible implementation, the data selector can be implemented in hardware or in combination with software control.
[0124] Embedding and de-embedding essentially involve adjusting the measured signal through mathematical operations. The frequency response of a circuit network typically contains amplitude and phase information, with the phase response directly affecting the signal propagation time, introducing additional time delays or advances. Therefore, after embedding or de-embedding, the signal's arrival time at the trigger point may deviate from the original expectation. Thus, minimizing the offset to the signal trigger time caused by embedding or de-embedding processing is a pressing issue that needs to be addressed.
[0125] This application provides a signal processing method, as shown in Figure 3, the method including:
[0126] Step 301: Store the stored signal obtained by first triggering the input signal;
[0127] Step 302: Perform a first processing and a second trigger based on the stored signal, align the first trigger time domain position of the second trigger with the output signal associated with the second trigger time domain position of the second trigger, wherein the output signal is obtained by performing the first processing on the stored signal;
[0128] The first process includes an embedding process associated with the input signal transmission path or a de-embedding process associated with the input signal transmission path.
[0129] Here, signal processing methods can be executed by processors of signal processing devices such as digital oscilloscopes, signal analyzers, protocol analyzers, and modular electronic measuring instruments. Alternatively, signal processing methods can be implemented by a processor combined with memory, digital signal processors, display circuits, etc. The processor may include a central processing unit, a field-programmable gate array (FPGA), etc., and is not limited here.
[0130] In one possible implementation, the input signal includes a digital signal obtained by processing an analog signal through an analog front-end and undergoing analog-to-digital conversion. For example, the input signal may include a digital signal obtained by processing an analog front-end of a digital oscilloscope and undergoing analog-to-digital conversion.
[0131] In one possible implementation, the input signal includes a digital signal generated by a signal generator.
[0132] The transmission path of the input signal may include the transmission path of the analog signal, such as a cable, connector, or clamp.
[0133] In one possible implementation, the first process includes either de-embedding or embedding. During signal detection, de-embedding is necessary to accurately reproduce the actual state of the signal being measured; similarly, embedding is required during simulation to obtain accurate simulation results. Here, de-embedding can remove the influence of the transmission path on the signal, thus obtaining the output signal. Embedding can add the influence of the transmission path to the input signal, simulating a realistic transmission environment, thereby obtaining the output signal.
[0134] In some embodiments, the storage of the stored signal obtained by first triggering the input signal includes:
[0135] The input signal is triggered for the first time;
[0136] A temporary signal is obtained from the input signal based on the trigger position of the first trigger;
[0137] The stored signal is obtained by interpolating the temporary signal;
[0138] Store the stored signal.
[0139] In one possible implementation, the triggering precision of the first trigger is lower than that of the second trigger.
[0140] Trigger accuracy depends on the precision of the digital signal. The input signal is a digital signal obtained from analog-to-digital conversion, and therefore consists of discrete points. Since the first trigger is a real-time trigger targeting the input signal, interpolation is usually not performed on the input signal. The discrete points of the input signal are relatively sparse (large time-domain intervals and / or amplitude intervals), resulting in low trigger accuracy.
[0141] The memory can store the temporary signal obtained for the first trigger. The processor can interpolate the temporary signal to increase the density of the signal discrete points (smaller time-domain intervals and / or amplitude intervals), and store the interpolated signal to obtain the stored signal.
[0142] The second trigger is a non-real-time trigger based on the stored signal. Because the stored signal has been interpolated, it has higher accuracy, thus improving the precision of the second trigger. In this way, the accuracy of the signal trigger position can be improved through the second trigger.
[0143] Here, the first trigger time domain position of the second trigger is the actual time domain position where the second trigger occurs.
[0144] In one possible implementation, the output signal is associated with a second trigger time-domain location of the second trigger, including the time-domain location of the point on the output signal triggered by the second trigger (such as a discrete point of the signal constituting the output signal).
[0145] In the non-real-time signal processing flow shown in Figure 2, the first trigger time-domain position of the second trigger can be: the time-domain position of the discrete point of the signal triggered by the second trigger circuit after the stored signal in the sampling storage circuit is bypassed and embedded / de-embedded by the circuit. The second trigger time-domain position of the output signal associated with the second trigger can be: the time-domain position of the discrete point of the stored signal triggered by the second trigger circuit after time shifting through the embedding / de-embedding circuit.
[0146] In related technologies, if the stored signal is not subjected to the first processing, then, as shown in Figure 4a, point i of the output signal is aligned with the first trigger time domain position T of the second trigger. If the stored signal is subjected to the first processing, since the stored signal is first triggered a second time, and then data (signal segments) for display and / or analysis are read from the stored signal based on the first trigger time domain position of the second trigger and subjected to the first processing to obtain the output signal, the output signal appears with a time shift in the time domain (phase shift in the frequency domain) relative to the stored signal, as shown in Figure 4b. Point i of the output signal obtained after de-embedding processing has a time shift in the time domain relative to the first trigger time domain position T of the second trigger (the second trigger time domain position of point i of the output signal is T'). Therefore, when displayed on the oscilloscope, the position where the output signal is triggered cannot be accurately displayed.
[0147] Here, the first trigger time domain position of the second trigger and the output signal associated with the second trigger time domain position can be aligned so that the first trigger time domain position of the second trigger and the second trigger time domain position of the output signal being triggered are aligned.
[0148] In one possible implementation, aligning the first and second trigger time domain positions may include adjusting the time difference between the first and second trigger time domain positions to be less than or equal to a predetermined difference. Here, the predetermined difference is a value that makes the first and second trigger time domain positions approximately equal. For example, adjusting the time difference between the first and second trigger time domain positions to 0.
[0149] In one possible implementation, the output signal or the first trigger time domain position can be compensated based on the phase shift (or time shift) generated by the first processing, thereby aligning the first trigger time domain position and the second trigger time domain position. The phase shift (or time shift) generated by the first processing can be due to factors such as the transmission delay introduced into the input signal transmission path during the first processing.
[0150] In one possible implementation, the stored signal consists of multiple discrete signal points, each corresponding to a signal location (such as a storage location, index location, etc.). When the stored signal undergoes its first processing, the discrete signal points shift relative to the signal locations, resulting in a phase shift (and a time-domain shift).
[0151] For example, the stored signal is stored in the form of discrete signal points, as shown in Figure 5. Each discrete signal point corresponds to a storage location; for example, storage locations 1 to 1 correspond to discrete signal points 1 to 1, respectively. When the second trigger is performed, the processor records the storage location i of the triggered discrete signal point i. If the first processing is not performed, then during waveform display, discrete signal point i is displayed at the first time-domain position of the second trigger. If the first processing is performed, due to the phase shift (and time shift) of the waveform, as shown in Figure 6, the discrete signal point shifts from its original corresponding storage location. For example, after the first processing, discrete signal point i+j is located at storage location i. Therefore, during waveform display, discrete signal point i+j is displayed at the first time-domain position of the second trigger, resulting in an offset between the first trigger time-domain position of the second trigger and the second trigger time-domain position of the output signal (the time-domain position where discrete signal point i is triggered by the second trigger). Here, the gap between the output signal and / or the first time-domain position can be compensated based on the phase shift (and time shift) generated by the first processing. For example, if the discrete signal point shown in Figure 6 has shifted j positions to the left relative to its original storage location (j being the phase shift generated by the first processing), compensation can be performed to shift the discrete signal point to the right, restoring it to its original storage location. This aligns the first trigger time domain position with the second trigger time domain position. Here, j can be either positive or negative. As shown in Figure 6, if j is positive, it's equivalent to the discrete signal point shifting to the left; if j is positive, it's equivalent to the discrete signal point shifting to the right.
[0152] Thus, by aligning the first trigger time domain position of the second trigger with the second trigger time domain position of the output signal, the accuracy of the user in determining the trigger point position of the output signal can be improved, the matching of the output signal and the trigger time can be achieved, and the accuracy of signal measurement can be improved.
[0153] In some embodiments, aligning the first trigger time-domain position and the output signal to the second trigger time-domain position includes:
[0154] The stored signal is processed to obtain a first processed signal, and the first processed signal is triggered in the second way to determine the signal trigger position of the first processed signal.
[0155] The signal to be output is obtained from the stored signal according to the signal trigger position;
[0156] The signal to be output is subjected to the first processing to obtain an output signal, so that the first trigger time domain position of the second trigger and the output signal are aligned with the second trigger time domain position of the second trigger.
[0157] Here, the signal trigger position can be aligned with the first trigger time domain position. That is, the discrete point of the signal corresponding to the signal trigger position is aligned with the first trigger time domain position.
[0158] In one possible implementation, the stored signal consists of multiple discrete signal points, each corresponding to a signal location (such as a storage location, index location, etc.). When the stored signal undergoes a first processing step, the discrete signal points shift relative to the signal locations, resulting in a phase shift (and a time-domain shift). The signal trigger location may include the signal location corresponding to the discrete signal point triggered by a second trigger.
[0159] Specifically, the signal processing flow is shown in Figure 7. The sampling and storage circuit holds a stored signal. The stored signal can first undergo a first processing to obtain a first processed signal (i.e., embedding or de-embedding processing is performed by the embedding / de-embedding circuit shown in Figure 7). The first processed signal can be triggered by a second trigger (a second trigger circuit performs a second trigger) to determine the signal trigger position of the first processed signal. The processor can obtain the output signal from the stored signal based on the signal trigger position. The output signal needs to undergo a first processing to obtain the output signal. Since both the first processed signal and the output signal used to determine the signal trigger position have undergone the first processing, that is, both have the same time delay or time advance added, the time difference between the signal trigger position and the signal cancels out. From the user's perspective, there is no misalignment between the first trigger time domain position and the second trigger time domain position.
[0160] In the non-real-time signal processing flow shown in Figure 7, the first trigger time-domain position of the second trigger can be: the time-domain position of the discrete point of the signal triggered by the second trigger in the first processed signal. The second trigger time-domain position of the output signal associated with the second trigger can be: the time-domain position of the discrete point of the signal triggered by the second trigger in the output signal after time shifting following the first processing (i.e., after embedding / de-embedding circuit processing).
[0161] In one possible implementation, obtaining the output signal from the stored signal based on the signal trigger position may include: truncating the output signal from the stored signal, wherein the truncated range includes signals within a predetermined range associated with the signal trigger position. For example, truncating signals within a predetermined range (duration range or range of the number of signal discrete points, etc.) before and after the signal trigger position.
[0162] Thus, the trigger position of the second trigger and the output signal are both obtained after the first processing of the stored signal, thereby realizing that the first trigger time domain position of the second trigger and the output signal are associated with the second trigger time domain position of the second trigger. This can improve the accuracy of the user in determining the trigger point position of the output signal, realize the matching of the output signal and the trigger time, and improve the accuracy of signal measurement.
[0163] In some embodiments, determining the signal trigger position of the first processed signal includes:
[0164] Determine the storage location corresponding to the discrete point of the first signal triggered by the second trigger in the first processed signal;
[0165] The step of obtaining the signal to be output from the stored signal according to the signal trigger position includes:
[0166] Based on the storage location, the signal to be output is obtained from the stored signal;
[0167] The first processing of the signal to be output to obtain an output signal, so that the first trigger time domain position of the second trigger and the output signal are aligned with the second trigger time domain position of the second trigger, includes:
[0168] Align the second signal discrete point corresponding to the storage location in the output signal with the first trigger time domain location.
[0169] For example, the stored signal is stored in the form of discrete signal points, as shown in Figure 8. Each discrete signal point corresponds to a storage location. For example, storage location 1 to storage location I correspond to discrete signal points 1 to I, respectively.
[0170] The first processed signal obtained by performing the first processing on the stored signal is shown in Figure 9. Since the first processing introduces a phase shift j (for example, the discrete point shifts to the left relative to the storage position), the discrete points of the signal in the first processed signal are shifted by j relative to the storage position. For example, the discrete point 1+j corresponding to the storage position 1+j is shifted to the storage position 1+j.
[0171] When the second trigger occurs, the processor records the storage position ij of the discrete point i of the triggered signal. The processor then retrieves the output signal from the stored signal based on the storage position ij. For example, the processor can extract the output signal from a first predetermined range before and after the storage position ij.
[0172] Figure 10 is a schematic diagram of the signal to be output. As shown in Figure 10, the discrete point corresponding to the storage position ij is the discrete point ij. Here, the signal to be output can be processed to obtain the output signal. Since the first processing introduces a phase shift j (for example, the discrete point shifts to the left relative to the storage position), the discrete point of the signal in the output signal is shifted by j relative to the storage position of the signal to be output, that is, the discrete point i of the signal moves to the storage position ij (as shown in Figure 9).
[0173] Thus, when the output signal is displayed, the first trigger time-domain position of the second trigger corresponds to the discrete point ij corresponding to the storage position ij of the output signal, that is, the first trigger time-domain position of the second trigger corresponds to the discrete point of actual triggering. This achieves alignment between the first trigger time-domain position of the second trigger and the output signal's association with the second trigger time-domain position of the second trigger, improving the accuracy of the user in determining the triggered point position of the output signal, achieving matching between the output signal and the trigger time, and improving signal measurement accuracy.
[0174] In some embodiments, aligning the first trigger time-domain position and the output signal to the second trigger time-domain position includes:
[0175] The second triggering of the stored signal determines the signal triggering position of the stored signal;
[0176] Based on the signal trigger position, obtain the signal to be output from the stored signal;
[0177] The first processing is performed on the signal to be output to obtain the output signal, wherein the digital filter coefficients used in the first processing are used to correct the phase offset associated with the transmission path in order to align the first trigger time domain position of the second trigger with the second trigger time domain position of the output signal associated with the second trigger.
[0178] Here, the non-real-time signal processing flow can be as shown in Figure 2, where the alignment of the first trigger time domain position and the first trigger time domain position is achieved by correcting the digital filter coefficients of the embedding / de-embedding circuit.
[0179] In the non-real-time signal processing flow shown in Figure 2, the first trigger time-domain position of the second trigger can be: the time-domain position of the discrete point of the signal triggered by the second trigger circuit after the stored signal in the sampling storage circuit is bypassed and embedded / de-embedded by the circuit. The second trigger time-domain position of the output signal associated with the second trigger can be: the time-domain position of the discrete point of the stored signal triggered by the second trigger circuit after time shifting through the embedding / de-embedding circuit.
[0180] The first processing (embedding or de-embedding) can be implemented using a digital filter. The digital filter achieves embedding or de-embedding by removing or introducing the phase shift of the signal transmission caused by the transmission path through the digital filter coefficients. Therefore, the output signal after the first processing will be offset relative to the first trigger time domain position.
[0181] For example, the digital filter coefficients (unit impulse response) of the first processing are shown in Figure 11 or Figure 12. Figure 11 shows the digital filter coefficients associated with the de-embedding process. As shown by the solid curve in Figure 11, the main lobe of the digital filter coefficients experiences an advance time shift in the time domain (phase shift in the frequency domain). Therefore, the signal experiences an advance time shift after passing through the digital filter, resulting in an advance of the output signal relative to the first trigger time domain position of the second trigger. Figure 12 shows the digital filter coefficients associated with the embedding process. As shown by the solid curve in Figure 12, the main lobe of the digital filter coefficients experiences a delay time shift in the time domain (phase shift in the frequency domain). Therefore, the signal experiences a delay after passing through the digital filter, resulting in a delay of the output signal relative to the first trigger time domain position of the second trigger.
[0182] Here, the digital filter coefficients can be corrected, for example, the phase shift of the digital filter coefficients can be corrected, in order to reduce the phase shift of the digital filter coefficients on the output signal.
[0183] Understandably, the first process may include de-embedding. De-embedding removes the transmission path from the stored signal, causing a phase shift that advances the output signal in the time domain. Correcting the phase shift associated with the transmission path may involve correcting the effect of the de-embedding process on the phase shift of the stored signal. De-embedding that corrects the phase shift prevents the stored signal from developing a phase shift, thus preventing the output signal from being advanced in the time domain.
[0184] The first process may include an embedding process. The embedding process superimposes a phase shift generated by the transmission path onto the stored signal, causing a time delay in the output signal. Correcting the phase shift associated with the transmission path may involve correcting the effect of the embedding process on the phase shift of the stored signal. An embedding process that corrects the phase shift prevents the stored signal from experiencing a phase shift, thus preventing a time delay in the output signal.
[0185] Specifically, a second trigger can be applied to the stored signal, and the trigger position can be determined. Based on the trigger position, the signal to be output can be extracted from the stored signal. Then, a digital filter coefficient that has been corrected for phase shift is used to process the signal to be output, reducing the phase impact of the digital filter on the signal to be output and ensuring that the signal to be output and the output signal are in phase harmony.
[0186] In one possible implementation, the stored signal consists of multiple discrete signal points, each corresponding to a signal location (such as a storage location, index location, etc.). When the stored signal undergoes initial processing, the discrete points shift relative to the signal locations, resulting in a phase shift (and a time-domain shift). The signal trigger location may include the signal location corresponding to the triggered discrete signal point.
[0187] In one possible implementation, obtaining the output signal from the stored signal based on the signal trigger position includes: extracting the output signal from the stored signal, wherein the extraction range includes a predetermined range associated with the signal trigger position. For example, extracting the signal within a predetermined range (duration range or range of the number of signal discrete points, etc.) before and after the signal trigger position.
[0188] Thus, by adjusting the digital filter coefficients, the alignment of the first and second trigger time domain positions is achieved. On the one hand, this improves the accuracy of the user's determination of the trigger point of the output signal, enhancing the authenticity of the output signal. On the other hand, it reduces changes to the signal processing flow and decreases the complexity of signal processing.
[0189] In some embodiments, the length of the digital filter coefficients is a first length, and the digital filter coefficients correct for phase offset associated with the transmission path, including:
[0190] By concatenating N of the digital filter coefficients, an extended digital filter coefficient with a second length is obtained, wherein the second length is N times the first length, wherein each digital filter coefficient has one main lobe, and the extended digital filter coefficient has N main lobes, wherein N is an integer greater than or equal to 2.
[0191] Candidate digital filter coefficients with a length of the first length are truncated from the extended digital filter coefficients, wherein the main lobe of the candidate digital filter coefficient is one of the N main lobes of the extended digital filter coefficients, and the main lobe of the candidate digital filter coefficient is located at the middle position in the length direction.
[0192] The candidate digital filter coefficients are used to update the digital filter coefficients.
[0193] Here, splicing N digital filter coefficients may include copying the digital filter coefficients N-1 times and splicing the digital filter coefficients with the copied digital filter coefficients.
[0194] Specifically, as shown in Figure 11, the main lobe of the digital filter coefficients shifts to the left (time domain advance). If candidate digital filter coefficients with a first length and the main lobe located in the middle are directly truncated from these coefficients, the candidate digital filter coefficients will be incomplete. If an incomplete digital filter is used to process the stored signal, output signal distortion will occur. Therefore, as shown in Figure 13, N digital filter coefficients of the first length l can be concatenated end-to-end to obtain an extended digital filter coefficient of the second length. A complete digital filter coefficient of the first length with the main lobe located in the middle of the first length is then truncated from the extended digital filter coefficient as a candidate digital filter coefficient (as shown by the curve within the range of arrow L in Figure 13). This candidate digital filter coefficient is then used as the coefficient of the first processed digital filter. The digital filter coefficient processing method shown in Figure 12 is similar and will not be described in detail here.
[0195] The updated digital filter coefficients, compared to the original digital filter coefficients, have been corrected in phase. This reduces the impact on the phase of the output signal during the initial processing, improving the accuracy of the user in determining the trigger point of the output signal and enhancing the authenticity of the output signal. Simultaneously, the digital filter coefficients exhibit less change in amplitude, further reducing the impact on the amplitude processing of the initial signal.
[0196] In some embodiments, N is 2, and the N digital filter coefficients include the same first digital filter coefficient and second digital filter coefficient; the first digital filter coefficient and the second digital filter coefficient each include 2M-1 discrete points in the time domain.
[0197] The concatenation of N digital filter coefficients to obtain extended digital filter coefficients of the second length includes:
[0198] The second digital filter coefficients are concatenated after the first digital filter coefficients, and the time-domain position of the last discrete point of the first digital filter coefficient overlaps with the first discrete point of the second digital filter coefficient, resulting in an extended digital filter coefficient with a length of 4M-3 discrete points; wherein the discrete point numbers of the first digital filter coefficients range from 0 to 2M-2, and the discrete point numbers of the second digital filter coefficients range from 2M-2 to 2M-4.
[0199] In one possible implementation, M is determined based on the real-time sampling rate and frequency resolution of the signal processing device. For example, 2M-1 is equal to the real-time sampling rate divided by the frequency resolution.
[0200] The step of truncating candidate digital filter coefficients of length 1 from the extended digital filter coefficients includes the following:
[0201] If the index n of the discrete point of the highest amplitude of the main lobe of the digital filter coefficient is greater than M-1, the discrete points from index n+M-1 to n+3M-3 in the extended digital filter coefficient are determined as candidate digital filter coefficients.
[0202] If the index n of the discrete point of the highest amplitude of the main lobe of the digital filter coefficient is less than M-1, the discrete points from index n-(M-1) to n+M-1 in the extended digital filter coefficients are determined as candidate digital filter coefficients.
[0203] For example, the first digital filter coefficients include 2M-1 discrete points from 0 to 2M-2. That is, the length of the first digital filter coefficient vector is 2M-1. The first digital filter coefficients are copied to obtain the second digital filter coefficients, and the last discrete point of the first digital filter coefficient is overlapped with the first discrete point of the second digital filter coefficient, resulting in extended digital filter coefficients with 2M-3 discrete points. The discrete points of the extended digital filter coefficients are numbered from 0 to 4M-4.
[0204] Find the index n of the discrete point with the first maximum amplitude in the extended digital filter coefficients; this is the position of the first main lobe. Then determine if n is greater than M-1.
[0205] As shown in Figure 14, if n is greater than or equal to M-1, the discrete points in the interval n-(M-1) to n+M-1 are selected to form the candidate digital filter coefficients.
[0206] As shown in Figure 15, if n is less than M-1, the candidate digital filter coefficients are selected from the sequence numbers n+M-1 to n+3M-3.
[0207] In some embodiments, aligning the first trigger time-domain position and the output signal to the second trigger time-domain position includes:
[0208] In response to receiving a first selection command on the display interface, the first trigger time domain position of the second trigger is aligned with the second trigger time domain position of the output signal associated with the second trigger.
[0209] In one possible implementation, the signal processing device may provide an operation option for the user to choose whether to align the first trigger time domain position and the second trigger time domain position.
[0210] Operation options can be displayed on the screen. The first selection command can include touch operations on the screen, such as clicking.
[0211] Operation options can also be set on the operation panel of the signal processing device. The first selection command can include operations on the selection buttons on the operation panel.
[0212] In one possible implementation, the signal processing device may provide operational options for the user to select how to align the first and second trigger time domain positions. For example, the user could choose to align the first and second trigger time domain positions by performing a second trigger after the first processing, or by adjusting the digital oscilloscope coefficients.
[0213] For example, as shown in Figure 16, the signal processing device can provide several options related to delay control on the display interface: none; trigger delay correction, wherein,
[0214] "None" indicates that no alignment of the first and second trigger time domain positions is performed;
[0215] Trigger delay correction means aligning the first and second trigger time domain positions by adjusting the digital oscilloscope coefficients; or it means aligning the first and second trigger time domain positions by performing a second trigger after the first processing. Users can choose based on their actual needs. This satisfies different user requirements and different scenarios, improving signal processing flexibility.
[0216] The following provides several specific examples in conjunction with any of the above embodiments:
[0217] Example 1
[0218] Figure 17 illustrates the non-real-time embedding / de-embedding (i.e., the first processing) method. Non-real-time processing refers to embedding / de-embedding the sampled and stored data (i.e., the stored signal). Specific steps include:
[0219] Step 1701: The input analog signal is converted into a digital signal by the analog front end and then reaches the analog-to-digital converter circuit.
[0220] Step 1702: First trigger (first trigger) to obtain a rough trigger location in real time.
[0221] Next, a trigger detection is performed on the real-time digital signal stream to quickly locate the approximate location of an event of interest (rough trigger location).
[0222] Step 1703: Sample and store the signal based on the approximate trigger position (i.e., store the signal obtained from the first trigger).
[0223] Based on a coarse location determined by a single trigger, the system captures and stores a segment of digital signal data near that location.
[0224] Step 1704: The stored data (stored signal) undergoes embedding / de-embedding processing (i.e., the stored signal is processed first to obtain the first processed signal) and then undergoes secondary triggering (i.e., second triggering) to obtain the precise trigger position.
[0225] Step 1705: Read the data for display and analysis from the sampling storage circuit according to the precise trigger position (to obtain the output signal).
[0226] Step 1706: Embed or de-embed the required data. That is, perform the first processing on the output signal.
[0227] Step 1707: Analyze or display the embedded / de-embedded data.
[0228] In this way, the data used for secondary triggering and the data used for analysis and display both pass through the same embedding / de-embedding circuit, which introduces the same time delay. Therefore, there is no time difference between the trigger position and the signal, thus achieving the effect of trigger correction. From the user's perspective, there is no misalignment between the waveform signal and the trigger position.
[0229] Example 2
[0230] From the perspective of algorithm principles, the trigger delay problem of embedding / de-embedding is caused by the influence of the analog front end, cable, probe, or other circuits on the phase. The phase shift in the frequency domain manifests as time shift in the time domain. The time-shifted signal is shown in Figures 11 and 12, where the vector starts from 0 and has a length of 2M-1. The value of M is determined by the embedding / de-embedding function.
[0231] To address the time-shift correction problem directly from its fundamental principle, a time-shift correction method is proposed that can eliminate the trigger delay issue introduced by embedding / de-embedding. The core of this method is to ensure that the embedding / de-embedding filter coefficients are located in the middle of the vector, thereby eliminating the uncertain time-shift problem.
[0232] As shown in Figure 18, the specific steps include:
[0233] Step 1801: Copy and extend the vector to a length of 4M-3. The original coefficient (digital filter coefficient) vector of length 2M-1 is copied and extended to a vector of length 4M-3. During the copying and extension process, the points at position 2M-2 need to coincide, therefore the extended length is 4M-3, and the endpoint of the vector is 4M-4.
[0234] Step 1802: Find the index n of the first maximum value. Find the index n of the first maximum value, which is the position of the main lobe.
[0235] Step 1803: Determine if n is greater than M-1. If n is greater than or equal to M-1, extract the values in the interval n-(M-1) to n+M-1 to form a new vector; otherwise, extract the values in the interval n+M-1 to n+3M-3 to form a new vector.
[0236] This disclosure also provides a signal processing apparatus, as shown in FIG19, the signal processing apparatus 10 comprising:
[0237] The first trigger circuit 11 is configured to trigger the input signal for the first time;
[0238] The sampling and storage circuit 12 is configured to store the stored signal obtained by the first triggering circuit performing the first triggering on the input signal;
[0239] Processing circuit 13 is configured to perform a first processing and a second trigger based on the stored signal, aligning a first trigger time domain position of the second trigger with an output signal associated with the second trigger time domain position of the second trigger, wherein the output signal is obtained by performing the first processing on the stored signal;
[0240] The first process includes an embedding process associated with the input signal transmission path or a de-embedding process associated with the input signal transmission path.
[0241] In some embodiments, as shown in FIG20, the processing circuit includes:
[0242] Processing sub-circuit 131 is configured to perform a first processing on the stored signal to obtain a first processed signal.
[0243] The second trigger circuit 132 is configured to trigger the first processing signal, and determines the signal trigger position of the first processing signal.
[0244] The sampling and storage circuit is configured to obtain the signal to be output from the stored signal according to the signal trigger position;
[0245] The processing sub-circuit is further configured to perform the first processing on the signal to be output to obtain an output signal, so that the first trigger time domain position of the second trigger and the output signal are associated with the second trigger time domain position of the second trigger.
[0246] In some embodiments, the second trigger circuit 132 is specifically configured to determine the storage location corresponding to the discrete point of the first signal triggered by the second trigger in the first processed signal;
[0247] The sampling and storage circuit 12 is specifically configured to obtain the output signal from the stored signal based on the storage location;
[0248] The processing sub-circuit 131 is specifically configured to align the second signal discrete point corresponding to the storage location in the output signal with the first trigger time domain position.
[0249] In some embodiments, the processing circuit 13 includes: a processing sub-circuit 131 and a second trigger circuit 132;
[0250] The second trigger circuit 132 is configured to trigger the stored signal in a second way and determine the signal trigger position of the stored signal.
[0251] The sampling and storage circuit 12 is configured to obtain the signal to be output from the stored signal according to the signal trigger position;
[0252] Processing sub-circuit 131 is configured to perform the first processing on the signal to be output to obtain the output signal, wherein the digital filter coefficients used in the first processing are used to correct the phase offset associated with the transmission path in order to align the first trigger time domain position of the second trigger with the second trigger time domain position of the output signal associated with the second trigger.
[0253] In some embodiments, the processing sub-circuit 131 is specifically configured as follows:
[0254] By concatenating N of the digital filter coefficients, an extended digital filter coefficient with a second length is obtained, wherein the second length is N times the first length, wherein each digital filter coefficient has one main lobe, and the extended digital filter coefficient has N main lobes, wherein N is an integer greater than or equal to 2.
[0255] Candidate digital filter coefficients with a length of the first length are truncated from the extended digital filter coefficients, wherein the main lobe of the candidate digital filter coefficient is one of the two main lobes of the extended digital filter coefficients, and the main lobe of the candidate digital filter coefficient is located at the middle position in the length direction.
[0256] The candidate digital filter coefficients are used to update the digital filter coefficients.
[0257] In some embodiments, N is 2, and the N digital filter coefficients include the same first digital filter coefficient and second digital filter coefficient; the first digital filter coefficient and the second digital filter coefficient each include 2M-2 discrete points in the time domain;
[0258] The specific configuration of the processing sub-circuit 131 is as follows:
[0259] The second digital filter coefficients are concatenated after the first digital filter coefficients, and the time-domain position of the last discrete point of the first digital filter coefficients overlaps with the first discrete point of the second digital filter coefficients, resulting in extended digital filter coefficients with a length of 4M-3 discrete points.
[0260] If the index n of the discrete point of the highest amplitude of the main lobe of the digital filter coefficient is greater than M-1, the discrete points from index n+M-1 to n+3M-3 in the extended digital filter coefficient are determined as candidate digital filter coefficients.
[0261] If the index n of the discrete point of the highest amplitude of the main lobe of the digital filter coefficient is less than M-1, the discrete points from index n-(M-1) to n+M-1 in the extended digital filter coefficients are determined as candidate digital filter coefficients.
[0262] In some embodiments, the sampling storage circuit 12 is specifically configured as follows:
[0263] A temporary signal is obtained from the input signal based on the trigger position of the first trigger;
[0264] The stored signal is obtained by interpolating the temporary signal;
[0265] Store the stored signal.
[0266] In some embodiments, the processing circuit 13 is specifically configured as follows:
[0267] In response to receiving a first selection command on the display interface, the first trigger time domain position of the second trigger is aligned with the second trigger time domain position of the output signal associated with the second trigger.
[0268] This disclosure also proposes an electronic device including a processor, a memory, and an executable program stored in the memory and executable by the processor, wherein the processor executes the steps of the signal processing method described in any of the above embodiments when running the executable program.
[0269] In this embodiment, the processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with instruction read and execute capabilities, such as a Central Processing Unit (CPU), a microprocessor, a graphics processing unit (GPU) (which can be understood as a type of microprocessor), or a digital signal processor (DSP). In another implementation, the processor can implement certain functions through the logical relationships of hardware circuits. The logical relationships of the aforementioned hardware circuits are fixed or reconfigurable. For example, the processor is a hardware circuit implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document and configuring the hardware circuit can be understood as the process of the processor loading instructions to implement the functions of some or all of the above-mentioned units, modules, or circuits. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a Neural Network Processing Unit (NPU), a Tensor Processing Unit (TPU), a Deep Learning Processing Unit (DPU), etc.
[0270] The computer-readable storage medium provided in this embodiment can execute the signal processing method of the above embodiment. Its implementation principle and technical effect are similar to those of the above embodiment, and will not be described again here.
[0271] The aforementioned computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0272] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in an electronic device or a host device.
[0273] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0274] The various embodiments or implementation methods described in this specification are presented in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
[0275] In the description of this specification, references to "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0276] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A signal processing method, wherein, The method includes: Store the stored signal obtained by triggering the input signal for the first time; Based on the stored signal, a first processing and a second trigger are performed, aligning the first trigger time domain position of the second trigger with the output signal associated with the second trigger time domain position of the second trigger, wherein the output signal is obtained by performing the first processing on the stored signal; The first process includes an embedding process associated with the input signal transmission path or a de-embedding process associated with the input signal transmission path.
2. The method according to claim 1, wherein, The alignment of the first trigger time domain position of the second trigger and the output signal associated with the second trigger time domain position of the second trigger include: The stored signal is processed to obtain a first processed signal, and the first processed signal is triggered in the second way to determine the signal trigger position of the first processed signal. The signal to be output is obtained from the stored signal according to the signal trigger position; The signal to be output is subjected to the first processing to obtain an output signal, so that the first trigger time domain position of the second trigger and the output signal are aligned with the second trigger time domain position of the second trigger.
3. The method according to claim 2, wherein, Determining the signal trigger position of the first processed signal includes: Determine the storage location corresponding to the discrete point of the first signal triggered by the second trigger in the first processed signal; The step of obtaining the signal to be output from the stored signal according to the signal trigger position includes: Based on the storage location, the signal to be output is obtained from the stored signal; The first processing of the signal to be output to obtain an output signal, so that the first trigger time domain position of the second trigger and the output signal are aligned with the second trigger time domain position of the second trigger, includes: Align the second signal discrete point corresponding to the storage location in the output signal with the first trigger time domain location.
4. The method according to claim 1, wherein, The alignment of the first trigger time domain position of the second trigger and the output signal associated with the second trigger time domain position of the second trigger include: The second triggering of the stored signal determines the signal triggering position of the stored signal; Based on the signal trigger position, obtain the signal to be output from the stored signal; The first processing is performed on the signal to be output to obtain the output signal, wherein the digital filter coefficients used in the first processing are used to correct the phase offset associated with the transmission path in order to align the first trigger time domain position of the second trigger with the second trigger time domain position of the output signal associated with the second trigger.
5. The method according to claim 4, wherein, The length of the digital filter coefficients is a first length, and the digital filter coefficients correct for the phase offset associated with the transmission path, including: By concatenating N of the digital filter coefficients, an extended digital filter coefficient with a second length is obtained, wherein the second length is N times the first length, wherein each digital filter coefficient has one main lobe, and the extended digital filter coefficient has N main lobes, wherein N is an integer greater than or equal to 2. Candidate digital filter coefficients with a length of the first length are truncated from the extended digital filter coefficients, wherein the main lobe of the candidate digital filter coefficient is one of the N main lobes of the extended digital filter coefficients, and the main lobe of the candidate digital filter coefficient is located at the middle position in the length direction. The candidate digital filter coefficients are used to update the digital filter coefficients.
6. The method according to claim 5, wherein, N is 2, and the N digital filter coefficients include the same first digital filter coefficient and second digital filter coefficient; the first digital filter coefficient and the second digital filter coefficient each include 2M-2 discrete points in the time domain; The concatenation of N digital filter coefficients to obtain extended digital filter coefficients of the second length includes: The second digital filter coefficients are concatenated after the first digital filter coefficients, and the time-domain position of the last discrete point of the first digital filter coefficients overlaps with the first discrete point of the second digital filter coefficients, resulting in extended digital filter coefficients with a length of 4M-3 discrete points. The step of truncating candidate digital filter coefficients of length 1 from the extended digital filter coefficients includes the following: If the index n of the discrete point of the highest amplitude of the main lobe of the digital filter coefficient is greater than M-1, the discrete points from index n+M-1 to n+3M-3 in the extended digital filter coefficient are determined as candidate digital filter coefficients. If the index n of the discrete point of the highest amplitude of the main lobe of the digital filter coefficient is less than M-1, the discrete points from index n-(M-1) to n+M-1 in the extended digital filter coefficients are determined as candidate digital filter coefficients.
7. The method according to any one of claims 1 to 6, wherein, The stored signal obtained by first triggering the input signal includes: The input signal is triggered for the first time; A temporary signal is obtained from the input signal based on the trigger position of the first trigger; The stored signal is obtained by interpolating the temporary signal; Store the stored signal.
8. The method according to any one of claims 1 to 6, wherein, The alignment of the first trigger time domain position of the second trigger and the output signal associated with the second trigger time domain position of the second trigger include: In response to receiving a first selection command on the display interface, the first trigger time domain position of the second trigger is aligned with the second trigger time domain position of the output signal associated with the second trigger.
9. A signal processing apparatus, wherein, The signal processing device includes: The first trigger circuit is configured to trigger the input signal. A sampling and storage circuit is configured to store a stored signal obtained by the first triggering circuit performing the first triggering on the input signal; The processing circuit is configured to perform a first processing and a second trigger based on the stored signal, aligning a first trigger time domain position of the second trigger with an output signal associated with a second trigger time domain position of the second trigger, wherein the output signal is obtained by performing the first processing on the stored signal; The first process includes an embedding process associated with the input signal transmission path or a de-embedding process associated with the input signal transmission path.
10. The apparatus according to claim 9, wherein, The processing circuit includes: The processing sub-circuit is configured to perform a first processing on the stored signal to obtain a first processed signal. The second triggering circuit is configured to trigger the second signal using the first processed signal, and determines the signal triggering position of the first processed signal. The sampling and storage circuit is configured to obtain the signal to be output from the stored signal according to the signal trigger position; The processing sub-circuit is further configured to perform the first processing on the signal to be output to obtain an output signal, so that the first trigger time domain position of the second trigger and the output signal are aligned with the second trigger time domain position of the second trigger.
11. The apparatus according to claim 10, wherein, The second triggering circuit is specifically configured to determine the storage location corresponding to the discrete point of the first signal triggered by the second trigger in the first processed signal; The sampling and storage circuit is specifically configured to obtain the signal to be output from the stored signal based on the storage location; The processing sub-circuit is specifically configured to align the second signal discrete point corresponding to the storage location in the output signal with the first trigger time domain position.
12. The apparatus according to claim 9, wherein, The processing circuit includes: The second trigger circuit is configured to trigger the stored signal in a second way, and to determine the signal trigger position of the stored signal. The sampling and storage circuit is configured to obtain the signal to be output from the stored signal according to the signal trigger position; The processing sub-circuit is configured to perform the first processing on the signal to be output to obtain the output signal, wherein the digital filter coefficients used in the first processing correct the phase offset associated with the transmission path to align the first trigger time domain position of the second trigger with the second trigger time domain position of the output signal associated with the second trigger.
13. The apparatus according to claim 12, wherein, The length of the digital filter coefficients is a first length, and the processing sub-circuit is specifically configured as follows: By concatenating N of the digital filter coefficients, an extended digital filter coefficient with a second length is obtained, wherein the second length is N times the first length, wherein each digital filter coefficient has one main lobe, and the extended digital filter coefficient has N main lobes, wherein N is an integer greater than or equal to 2. Candidate digital filter coefficients with a length of the first length are truncated from the extended digital filter coefficients, wherein the main lobe of the candidate digital filter coefficient is one of the N main lobes of the extended digital filter coefficients, and the main lobe of the candidate digital filter coefficient is located at the middle position in the length direction. The candidate digital filter coefficients are used to update the digital filter coefficients.
14. The apparatus according to claim 13, wherein, N is 2, and the N digital filter coefficients include the same first digital filter coefficient and second digital filter coefficient; the first digital filter coefficient and the second digital filter coefficient each include 2M-2 discrete points in the time domain; The specific configuration of the processing sub-circuit is as follows: The second digital filter coefficients are concatenated after the first digital filter coefficients, and the time-domain position of the last discrete point of the first digital filter coefficients overlaps with the first discrete point of the second digital filter coefficients, resulting in extended digital filter coefficients with a length of 4M-3 discrete points. If the index n of the discrete point of the highest amplitude of the main lobe of the digital filter coefficient is greater than M-1, the discrete points from index n+M-1 to n+3M-3 in the extended digital filter coefficient are determined as candidate digital filter coefficients. If the index n of the discrete point of the highest amplitude of the main lobe of the digital filter coefficient is less than M-1, the discrete points from index n-(M-1) to n+M-1 in the extended digital filter coefficients are determined as candidate digital filter coefficients.
15. The apparatus according to any one of claims 9 to 14, wherein, The sampling and storage circuit is specifically configured as follows: A temporary signal is obtained from the input signal based on the trigger position of the first trigger; The stored signal is obtained by interpolating the temporary signal; Store the stored signal.
16. The apparatus according to any one of claims 9 to 14, wherein, The processing circuit is specifically configured as follows: In response to receiving a first selection command on the display interface, the first trigger time domain position of the second trigger is aligned with the second trigger time domain position of the output signal associated with the second trigger.
17. An electronic device comprising a processor, a memory, and an executable program stored in the memory and executable by the processor, wherein, When the processor runs the executable program, it performs the steps of the signal processing method as described in any one of claims 1 to 8.
18. A storage medium having an executable program stored thereon, wherein, When the executable program is executed by the processor, it implements the steps of the signal processing method as described in any one of claims 1 to 8.
