Signal reconstruction device and method based on serial communication and storage medium
By extracting and transmitting low-frequency time-domain and high-frequency-domain features of signals in serial communication, and combining them with upsampling and compensation signal construction on the mobile terminal, the problem of signal reconstruction accuracy and efficiency in serial communication is solved, achieving a highly efficient signal reconstruction effect.
Patent Information
- Application Number
- CN202510372809.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2045-03-27
AI Technical Summary
In the continuous acquisition and transmission of broadband transient signals, serial communication suffers from high-frequency component attenuation or loss due to bandwidth limitations, affecting the accuracy and integrity of signal reconstruction. Existing technologies struggle to simultaneously meet the dual requirements of transmission efficiency and signal integrity.
The microcontroller extracts low-frequency and high-frequency time-domain signals from the original analog signal, extracts the original time-domain features and high-frequency frequency-domain features respectively, and transmits them to the mobile terminal via serial port. The mobile terminal performs upsampling and high-frequency compensation signal construction to realize the superposition and reconstruction of the signal.
It achieves efficient and accurate signal reconstruction in low-bandwidth environments, improving transmission efficiency and bandwidth utilization, and significantly improving the reconstruction accuracy and integrity of signals.
Smart Images

Figure CN120200883B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of signal processing technology, and in particular to a signal reconstruction device, method and storage medium based on serial communication. Background Technology
[0002] Serial communication, as a common communication method, plays a crucial role in applications such as industrial automation control, embedded system interconnection, and distributed sensor networks. However, due to its inherent characteristics, in the continuous acquisition and transmission of broadband transient signals (instantaneous frequency ≥ 100kHz), the data throughput during the transmission of the original signal will exceed the serial port threshold. This causes the high-frequency components of such signals to attenuate or be lost when transmitting them via serial port, resulting in severe signal distortion and affecting the accuracy and integrity of signal reconstruction.
[0003] Existing technical solutions typically employ data compression algorithms or reduced sampling rates to decrease data transmission volume, adapting to the bandwidth limitations of serial communication. However, while data compression algorithms and reduced sampling rates can reduce data volume to some extent, they perform poorly in signal reconstruction, particularly regarding high-frequency components and signal abrupt changes. Therefore, traditional serial transmission methods struggle to simultaneously meet the dual requirements of transmission efficiency and signal integrity.
[0004] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main objective of this invention is to provide a signal reconstruction device, method, and storage medium based on serial communication, aiming to solve the technical problem of achieving efficient signal transmission and accurate reconstruction.
[0006] To achieve the above objectives, the present invention provides a signal reconstruction device based on serial communication, the signal reconstruction device based on serial communication comprising a microcontroller and a mobile terminal:
[0007] The microcontroller is used to determine the low-frequency time-domain signal and the high-frequency time-domain signal based on the original analog signal, and extract the original time-domain features and the high-frequency frequency-domain features from the original analog signal and the high-frequency time-domain signal, respectively, and transmit the low-frequency time-domain signal, the original time-domain features and the high-frequency frequency-domain features to the mobile terminal through a serial port;
[0008] The mobile terminal is used to upsample the low-frequency time-domain signal to obtain a low-frequency restored signal, construct a high-frequency compensation signal based on the high-frequency frequency-domain characteristics, and superimpose and reconstruct the low-frequency restored signal and the high-frequency compensation signal based on the original time-domain characteristics.
[0009] Optionally, determining the low-frequency time-domain signal and the high-frequency time-domain signal according to the analog quantity original signal comprises:
[0010] Determining a high-low frequency cutoff frequency corresponding to the analog quantity original signal;
[0011] Dividing the analog quantity original signal by a filter based on the high-low frequency cutoff frequency to obtain the low-frequency time-domain signal and the high-frequency time-domain signal.
[0012] Optionally, dividing the analog quantity original signal by a filter based on the high-low frequency cutoff frequency to obtain the low-frequency time-domain signal and the high-frequency time-domain signal comprises:
[0013] Constructing a low-frequency transfer function and a high-frequency transfer function based on the filter according to the high-low frequency cutoff frequency, and converting the analog quantity original signal into an original frequency-domain signal by Fourier transform;
[0014] Determining the low-frequency time-domain signal according to the low-frequency transfer function and the original frequency-domain signal, and determining the high-frequency time-domain signal according to the high-frequency transfer function and the original frequency-domain signal.
[0015] Optionally, extracting an original time-domain feature from the analog quantity original signal comprises:
[0016] Calculating variances of a plurality of signal discrete points corresponding to the analog quantity original signal by a preset sliding window;
[0017] Determining adjacent difference values of the plurality of signal discrete points corresponding to the analog quantity original signal;
[0018] Extracting at least one abrupt signal discrete point from the analog quantity original signal according to the adjacent difference values of the plurality of signal discrete points and the variances of the plurality of signal discrete points;
[0019] Determining abrupt point information corresponding to the at least one abrupt signal discrete point;
[0020] Determining the original time-domain feature according to the abrupt point information.
[0021] Optionally, extracting a high-frequency frequency-domain feature from the high-frequency time-domain signal comprises:
[0022] Converting the high-frequency time-domain signal into a high-frequency frequency-domain signal by Fourier transform;
[0023] Generating a high-frequency spectrum diagram according to the high-frequency frequency-domain signal;
[0024] Analyzing the high-frequency spectrum diagram to obtain a frequency index, amplitude information and phase information of maximum frequency energy in a transmission period;
[0025] Determine a high-frequency frequency domain feature according to the frequency index, the amplitude information and the phase information.
[0026] Optionally, the single-chip microcomputer is further configured to transmit the low-frequency time domain signal, the original time domain feature and the high-frequency frequency domain feature to the mobile terminal through a serial port according to a preset data frame structure based on an incremental compression encoding mode.
[0027] Optionally, constructing a high-frequency compensation signal according to the high-frequency frequency domain feature comprises:
[0028] extracting a high-frequency frequency index, a high-frequency amplitude and a high-frequency phase from the high-frequency frequency domain feature;
[0029] determining a frequency component interval according to the high-frequency frequency index;
[0030] performing spline interpolation processing on the high-frequency amplitude and the high-frequency phase based on the frequency component interval to obtain a high-frequency interpolation amplitude and a high-frequency interpolation phase;
[0031] constructing a high-frequency compensation signal according to the high-frequency interpolation amplitude and the high-frequency interpolation phase.
[0032] Optionally, performing spline interpolation processing on the high-frequency phase based on the frequency component interval to obtain a high-frequency interpolation phase comprises:
[0033] calculating a plurality of frequency phase differences of the high-frequency phase based on the frequency component interval;
[0034] adjusting the plurality of phase differences according to a phase change continuity condition and performing spline interpolation processing on the adjusted plurality of phase differences to obtain a high-frequency interpolation phase.
[0035] In addition, to achieve the above object, the application further provides a signal reconstruction method based on serial port communication, which comprises:
[0036] a single-chip microcomputer determines a low-frequency time domain signal and a high-frequency time domain signal according to an analog original signal, and extracts an original time domain feature and a high-frequency frequency domain feature from the analog original signal and the high-frequency time domain signal respectively, and transmits the low-frequency time domain signal, the original time domain feature and the high-frequency frequency domain feature to a mobile terminal through a serial port;
[0037] the mobile terminal up-samples the low-frequency time domain signal to obtain a low-frequency restored signal, and constructs a high-frequency compensation signal according to the high-frequency frequency domain feature, and superimposes and reconstructs the low-frequency restored signal and the high-frequency compensation signal based on the original time domain feature.
[0038] In addition, to achieve the above object, the application further provides a storage medium, which stores a signal reconstruction program based on serial communication, and the signal reconstruction program based on serial communication realizes the steps of the signal reconstruction method based on serial communication when executed by a processor.
[0039] The microcontroller first determines the low-frequency time domain signal and the high-frequency time domain signal according to the analog original signal, extracts the original time domain feature and the high-frequency frequency domain feature from the analog original signal and the high-frequency time domain signal respectively, transmits the low-frequency time domain signal, the original time domain feature and the high-frequency frequency domain feature to the mobile terminal through the serial port, then the mobile terminal up-samples the low-frequency time domain signal to obtain a low-frequency restored signal, constructs a high-frequency compensation signal according to the high-frequency frequency domain feature, and superimposes and reconstructs the low-frequency restored signal and the high-frequency compensation signal based on the original time domain feature. The application can realize efficient and accurate signal reconstruction through the compression transmission of frequency index, amplitude, phase and mutation point information in a low-bandwidth environment, and significantly improves the transmission efficiency and bandwidth utilization of the signal. BRIEF DESCRIPTION OF DRAWINGS
[0040] Figure 1 The figure is a structural block diagram of the signal reconstruction device based on serial communication according to the first embodiment of the application.
[0041] Figure 2 The figure is a signal down-conversion processing and reconstruction module distribution diagram of the signal reconstruction device based on serial communication according to the first embodiment of the application.
[0042] Figure 3 The figure is a serial data frame structure diagram of the signal reconstruction device based on serial communication according to the first embodiment of the application.
[0043] Figure 4 The figure is a comparison result diagram of the original signal and the reconstructed signal of the signal reconstruction device based on serial communication according to the first embodiment of the application.
[0044] Figure 5 The figure is a flow diagram of the signal reconstruction method based on serial communication according to the first embodiment of the application.
[0045] The implementation, functional features and advantages of the application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0046] It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application.
[0047] The embodiment of the application provides a signal reconstruction device based on serial communication, referring to Figure 1 , Figure 1 The figure is a structural block diagram of the signal reconstruction device based on serial communication according to the first embodiment of the application.
[0048] In the embodiment, the signal reconstruction device based on serial communication includes a single-chip microcomputer 1001 and a mobile terminal 1002: the single-chip microcomputer is provided with an analog-to-digital converter (ADC) module, which is used for signal sampling; the mobile terminal can be a PC terminal, and signal simulation and reconstruction need to be performed in MATLAB of the PC terminal.
[0049] The single-chip microcomputer 1001 is configured to determine a low-frequency time-domain signal and a high-frequency time-domain signal according to an analog original signal, extract original time-domain features and high-frequency frequency-domain features from the analog original signal and the high-frequency time-domain signal respectively, and transmit the low-frequency time-domain signal, the original time-domain features and the high-frequency frequency-domain features to the mobile terminal through a serial port.
[0050] In a specific implementation, the ADC module of the MCU is used to directly sample the original signal (i.e., the analog original signal), and the sampling frequency is set to 100 kHz, which ensures that the high-frequency part of the signal can be completely captured.
[0051] Further, the processing manner of determining the low-frequency time-domain signal and the high-frequency time-domain signal according to the analog original signal is to determine the high-frequency cutoff frequency and the low-frequency cutoff frequency corresponding to the analog original signal; the analog original signal is divided based on the high-frequency cutoff frequency and the low-frequency cutoff frequency through a filter to obtain the low-frequency time-domain signal and the high-frequency time-domain signal.
[0052] It should be understood that the filter needs to be set in the MCU, and the filter includes a low-pass filter and a high-pass filter, and the high-frequency cutoff frequency and the low-frequency cutoff frequency are set to divide the analog original signal to obtain the low-frequency time-domain signal and the high-frequency time-domain signal.
[0053] Further, the processing manner of dividing the analog original signal based on the high-frequency cutoff frequency and the low-frequency cutoff frequency through the filter to obtain the low-frequency time-domain signal and the high-frequency time-domain signal is to construct a low-frequency transfer function and a high-frequency transfer function based on the filter according to the high-frequency cutoff frequency and the low-frequency cutoff frequency, and convert the analog original signal into an original frequency-domain signal through Fourier transform; the low-frequency time-domain signal is determined according to the low-frequency transfer function and the original frequency-domain signal, and the high-frequency time-domain signal is determined according to the high-frequency transfer function and the original frequency-domain signal.
[0054] A low-pass filter is used to obtain the low-frequency time-domain signal, and the low-frequency transfer function of the low-pass filter is:
[0055]
[0056] wherein, the high-frequency cutoff frequency and the low-frequency cutoff frequency, is an independent variable, The imaginary unit is used to transform the original signal using Fourier transform. Convert to the original frequency domain signal And remove frequencies above the cutoff frequency by using the filter's frequency response. The part that yields the low-frequency time-domain signal :
[0057]
[0058] In the formula, This is the inverse Fourier transform.
[0059] The high-frequency transfer function of a high-pass filter used to remove low-frequency time-domain signals is:
[0060]
[0061] Using this high-pass filter, frequencies above the cutoff frequency can be obtained. Part :
[0062]
[0063] For the original analog signal, in order to restore the abrupt changes in the original signal as much as possible, especially for instantaneous changes in the signal, these changes often manifest as strong high-frequency components in the frequency domain, which may not be fully recovered with limited frequency domain compensation. Therefore, a method is used: calculating the variance of multiple discrete points corresponding to the original analog signal using a preset sliding window; determining the adjacent differences between multiple discrete points corresponding to the original analog signal; extracting at least one abrupt signal discrete point from the original analog signal based on the adjacent differences and the variance of multiple discrete points; determining the abrupt point information corresponding to the at least one abrupt signal discrete point; and determining the original time-domain characteristics based on the abrupt point information.
[0064] It should be understood that the original analog signal consists of multiple discrete signal points, and the original time-domain characteristics are the timestamps of the abrupt change points and the original data.
[0065] In the specific implementation, the current moment discrete points of the signal Compared to the previous moment discrete points of the signal Perform a difference operation to obtain the current time. The difference between adjacent discrete points of the signal:
[0066]
[0067] Use size Sliding window calculation of the current time variance of discrete points of the signal :
[0068]
[0069] wherein, is the data point before the current time.
[0070] The mutation threshold of the current time is set as When , it is determined that the current point is a mutation point, and the timestamp of the point (i.e., the mutation point) is recorded as , and the original data of the point is .
[0071] It should be further explained that the mutation point information includes the timestamp and the original data.
[0072] Further, the processing manner of extracting the high-frequency frequency domain feature from the high-frequency time domain signal is to convert the high-frequency time domain signal into a high-frequency frequency domain signal through Fourier transform; to generate a high-frequency spectrum graph according to the high-frequency frequency domain signal; to analyze the high-frequency spectrum graph to obtain the frequency index, amplitude information and phase information of the maximum frequency energy in a transmission period; and to determine the high-frequency frequency domain feature according to the frequency index, amplitude information and phase information.
[0073] The high-frequency frequency domain feature includes the frequency index, amplitude information and phase information.
[0074] In the embodiment, the frequency domain aspect firstly performs FFT operation on the high-pass filter output to extract the frequency index , amplitude and phase of the preset number (for example, the first 10) of maximum frequency energies in a transmission period.
[0075] The frequency component is calculated by calculating the sampling frequency of the signal and the number of FFT points:
[0076]
[0077] wherein, is the frequency index, is the sampling point number of the signal.
[0078] The amplitude is the modulus of the frequency domain signal , that is:
[0079]
[0080] wherein, and are the complex frequency domain signals the real and imaginary parts of the complex frequency domain signal.
[0081] the phase is the angle of the complex frequency domain signal.
[0082]
[0083] For each frequency component , the corresponding energy can be expressed as the square of the amplitude:
[0084]
[0085] It should be further explained that the single-chip microcomputer is further used for transmitting the low-frequency time domain signal, the original time domain feature and the high-frequency frequency domain feature to the mobile terminal through a serial port according to a preset data frame structure based on an incremental compression encoding mode.
[0086] In the embodiment, the reference Figure 2 , Figure 2 is a signal down-conversion processing and reconstruction module distribution diagram of the signal reconstruction device based on serial communication of the application, and a preset data frame structure also needs to be constructed, which includes a frame header, a time stamp, a sampling frequency, a sampling point number, a low-frequency time domain signal, an original time domain feature and a high-frequency frequency domain feature, and a frame tail (check code).
[0087] The reference Figure 3 , Figure 3 is a serial data frame structure diagram of the signal reconstruction device based on serial communication of the application, the frame header includes data type identification and data length, and the time stamp is used for synchronizing data. The high-frequency frequency domain feature includes amplitude, phase and frequency index, and the information such as the position of the mutation point and the mutation time in the original time domain feature is encoded in an incremental compression mode, so as to reduce the data transmission amount. The frame tail includes CRC or other forms of check code to verify the data integrity. After these data are encapsulated according to the predetermined format, the data are transmitted to the PC terminal through the serial port.
[0088] The mobile terminal 1002 is used for up-sampling the low-frequency time domain signal to obtain a low-frequency restored signal, constructing a high-frequency compensation signal according to the high-frequency frequency domain feature, and superimposing and reconstructing the low-frequency restored signal and the high-frequency compensation signal based on the original time domain feature.
[0089] Further, the received data frame needs to be deframed in advance in the PC terminal to obtain the deframed low-frequency time domain signal, original time domain feature and high-frequency frequency domain feature.
[0090] The low-frequency time domain signal is preprocessed, including: the received low-frequency time domain signal Three times spline interpolation is performed to restore to the original sampling rate , to obtain a low frequency restoration signal .
[0091]
[0092] wherein, is a coefficient calculated by known data points. The interpolation process can restore the sampling rate of the signal, fill in the gaps in the time domain, and ensure the continuity and accuracy of the signal.
[0093] Further, the processing mode of constructing a high-frequency compensation signal according to the high-frequency frequency domain characteristics is to extract a high-frequency frequency index (i.e., a frequency index), a high-frequency amplitude (i.e., amplitude information), and a high-frequency phase (i.e., phase information) from the high-frequency frequency domain characteristics; determine a frequency component interval according to the high-frequency frequency index; perform spline interpolation processing on the high-frequency amplitude and the high-frequency phase based on the frequency component interval to obtain a high-frequency interpolation amplitude and a high-frequency interpolation phase; and construct a high-frequency compensation signal according to the high-frequency interpolation amplitude and the high-frequency interpolation phase.
[0094] The frequency domain compensation includes using the received discrete high-frequency amplitude spectrum information to perform spline interpolation on each frequency component interval , for any point in the frequency component interval, to obtain an interpolation polynomial .
[0095]
[0096] wherein, is a coefficient calculated by known points. All the piecewise interpolation polynomials in a transmission cycle are combined into , is a high-frequency interpolation amplitude.
[0097] The processing mode of performing spline interpolation on the high-frequency phase based on the frequency component interval to obtain a high-frequency interpolation phase is to calculate a plurality of frequency phase differences of the high-frequency phase based on the frequency component interval; adjust the plurality of phase differences according to a phase change continuity condition (i.e., phase change continuity); and perform spline interpolation processing on the adjusted plurality of phase differences to obtain a high-frequency interpolation phase.
[0098] In this embodiment, the phase is wrapped, and first, the interpolation (i.e., the frequency phase difference) of and is calculated , if , , if , This ensures continuous phase changes, avoids large jumps by adjusting the phase difference, and then uses cubic spline interpolation to obtain the high-frequency interpolated phase. The high-frequency compensation signal (i.e., the high-frequency compensation signal) is used for compensation. for:
[0099]
[0100] In practical implementation, abrupt change recovery is used to restore the abrupt change features in the original signal, using a step function. Simulated signal abrupt change.
[0101]
[0102] Finally, the PC completes the signal reconstruction:
[0103]
[0104] The correlation coefficient is used to compare the reconstruction rate of the signal compared to the original signal. The formula for the correlation coefficient is:
[0105]
[0106] In the formula, r is the reduction rate.
[0107] It should also be noted that if the restoration rate is greater than the preset threshold, the reconstructed signal will be output; if it is less than the preset threshold, the PC will reprocess the low-frequency time domain signal, the original time domain features, and the high-frequency frequency domain features.
[0108] In this example, refer to Figure 4 , Figure 4 This is a comparison result diagram of the original signal and the reconstructed signal in the first embodiment of the signal reconstruction device based on serial communication of the present invention. An ADC sampling frequency of [frequency missing] is used. Low-frequency signals exist respectively , , , High-frequency signals exist respectively , , , The cutoff frequency is set to According to the transmission The signal requires 1 byte for each data point to be calculated. To completely reconstruct the original signal, a transmission rate of [value missing] is needed. , far exceeding the upper limit rate of serial port transmission. When using the frequency reduction processing transmission and reconstruction method, each data frame contains a low-frequency data signal, 10 mutation point data and mutation point time, 10 frequency indexes with the maximum frequency energy and corresponding amplitude and phase data, in addition to transmission timestamps, frame headers, frame tail checks, etc. The data amount is 63 bytes, and the data transmission is periodic transmission. In this example, the transmission period of is used, and the required transmission rate is calculated as , which is much smaller than the rate required for full reconstruction of the original signal. In this example, the original signal and the reconstructed signal and the local amplification graph of any selected time period are presented in matlab as shown in Figure 4 . The amplitude peak value in this period is selected, and at the same time, the peak error rate is 0.21%. The correlation coefficient is used to measure the restoration rate of the reconstructed signal to the original signal, and the restoration rate reaches 98.68%.
[0109] In this embodiment, first, the single-chip microcomputer determines the low-frequency time-domain signal and the high-frequency time-domain signal according to the analog original signal, and extracts the original time-domain features and the high-frequency frequency-domain features from the analog original signal and the high-frequency time-domain signal, respectively. The low-frequency time-domain signal, the original time-domain features and the high-frequency frequency-domain features are transmitted to the mobile terminal through the serial port. Then, the mobile terminal up-samples the low-frequency time-domain signal to obtain a low-frequency restored signal, and constructs a high-frequency compensation signal according to the high-frequency frequency-domain features, and superimposes and reconstructs the low-frequency restored signal and the high-frequency compensation signal based on the original time-domain features. In the low-bandwidth environment, the frequency index, amplitude, phase and mutation point information compression transmission of this embodiment can realize efficient and accurate signal reconstruction, and significantly improve the transmission efficiency and bandwidth utilization of the signal.
[0110] Referring to Figure 5 , Figure 5 is a flowchart of the first embodiment of the signal reconstruction method based on serial port communication of the present application.
[0111] As shown in Figure 5 , the signal reconstruction method based on serial port communication proposed by the embodiment of the present application comprises:
[0112] Step S10: The single-chip microcomputer determines the low-frequency time-domain signal and the high-frequency time-domain signal according to the analog original signal, and extracts the original time-domain features and the high-frequency frequency-domain features from the analog original signal and the high-frequency time-domain signal, respectively. The low-frequency time-domain signal, the original time-domain features and the high-frequency frequency-domain features are transmitted to the mobile terminal through the serial port.
[0113] Step S20: The mobile terminal up-samples the low-frequency time-domain signal to obtain a low-frequency restored signal, and constructs a high-frequency compensation signal according to the high-frequency frequency-domain features, and superimposes and reconstructs the low-frequency restored signal and the high-frequency compensation signal based on the original time-domain features.
[0114] The other embodiments or specific implementations of the signal reconstruction method based on serial communication of the present application can refer to the above-mentioned method embodiments, and will not be described here.
[0115] It should be noted that in this paper, the term "includes", "contains" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the sentence "includes a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0116] The above-mentioned embodiment number of the present application is only for description, not representing the advantages and disadvantages of the embodiments.
[0117] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application or the part that contributes to the prior art can be embodied in the form of software product, which is stored in a storage medium (such as read-only memory / random access memory, magnetic disk, optical disk), including a plurality of instructions for making a terminal device (which can be a mobile phone, computer, server, or network device, etc.) execute the method described in each embodiment of the present application.
[0118] The above is only the preferred embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation made by using the content of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A signal reconstruction apparatus based on serial communication, characterized by, The signal reconstruction device based on serial communication includes a single-chip microcomputer and a mobile terminal; The single-chip microcomputer is configured to determine a low-frequency time-domain signal and a high-frequency time-domain signal according to an analog original signal, extract an original time-domain feature and a high-frequency frequency-domain feature from the analog original signal and the high-frequency time-domain signal respectively, and transmit the low-frequency time-domain signal, the original time-domain feature and the high-frequency frequency-domain feature to the mobile terminal through a serial port; The mobile terminal is configured to up-sample the low-frequency time-domain signal to obtain a low-frequency restored signal, construct a high-frequency compensation signal according to the high-frequency frequency-domain feature, and superimpose and reconstruct the low-frequency restored signal and the high-frequency compensation signal based on the original time-domain feature; Determining a low-frequency time-domain signal and a high-frequency time-domain signal according to an analog original signal includes: Determining high and low frequency cutoff frequencies corresponding to the analog original signal; Dividing the analog original signal by a filter based on the high and low frequency cutoff frequencies to obtain the low-frequency time-domain signal and the high-frequency time-domain signal; Dividing the analog original signal by a filter based on the high and low frequency cutoff frequencies to obtain the low-frequency time-domain signal and the high-frequency time-domain signal includes: Constructing a low-frequency transfer function and a high-frequency transfer function based on the filter according to the high and low frequency cutoff frequencies, and converting the analog original signal into an original frequency-domain signal through Fourier transform; Determining the low-frequency time-domain signal according to the low-frequency transfer function and the original frequency-domain signal, and determining the high-frequency time-domain signal according to the high-frequency transfer function and the original frequency-domain signal; Extracting an original time-domain feature from the analog original signal includes: Calculating variances of a plurality of signal discrete points corresponding to the analog original signal through a preset sliding window, and determining adjacent difference values of the plurality of signal discrete points corresponding to the analog original signal; Extracting at least one mutation signal discrete point from the analog original signal according to the plurality of signal discrete point adjacent difference values and the plurality of signal discrete point variances; Determining mutation point information corresponding to the at least one mutation signal discrete point; Determining the original time-domain feature according to the mutation point information; Extracting a high-frequency frequency-domain feature from the high-frequency time-domain signal includes: Converting the high-frequency time-domain signal into a high-frequency frequency-domain signal through Fourier transform; Generating a high-frequency spectrum graph according to the high-frequency frequency-domain signal; Analyzing the high-frequency spectrum graph to obtain a frequency index, amplitude information and phase information of maximum frequency energy within a transmission period; Determining the high-frequency frequency-domain feature according to the frequency index, the amplitude information and the phase information; Constructing a high-frequency compensation signal according to the high-frequency frequency-domain feature includes: Extracting a high-frequency frequency index, a high-frequency amplitude and a high-frequency phase from the high-frequency frequency-domain feature; Determining a frequency component interval according to the high-frequency frequency index; Performing spline interpolation processing on the high-frequency amplitude and the high-frequency phase based on the frequency component interval to obtain a high-frequency interpolation amplitude and a high-frequency interpolation phase; Constructing the high-frequency compensation signal according to the high-frequency interpolation amplitude and the high-frequency interpolation phase; Performing spline interpolation processing on the high-frequency phase based on the frequency component interval to obtain a high-frequency interpolation phase includes: calculating a plurality of frequency phase differences of the high frequency phase based on the frequency component interval; adjusting the plurality of phase differences according to a phase change continuity condition, and performing spline interpolation processing on the adjusted plurality of phase differences to obtain a high frequency interpolation phase.
2. The apparatus of claim 1, wherein, The single-chip microcomputer is further configured to transmit the low frequency time domain signal, the original time domain feature and the high frequency frequency domain feature to the mobile terminal through a serial port based on a preset data frame structure according to an incremental compression encoding mode.
3. A signal reconstruction method based on serial communication, characterized in that, The signal reconstruction method based on serial port communication comprises: The single-chip microcomputer determines a low frequency time domain signal and a high frequency time domain signal according to an analog original signal, and extracts an original time domain feature and a high frequency frequency domain feature from the analog original signal and the high frequency time domain signal respectively, and transmits the low frequency time domain signal, the original time domain feature and the high frequency frequency domain feature to the mobile terminal through a serial port; The mobile terminal up-samples the low frequency time domain signal to obtain a low frequency restored signal, constructs a high frequency compensation signal according to the high frequency frequency domain feature, and superimposes and reconstructs the low frequency restored signal and the high frequency compensation signal based on the original time domain feature; The signal reconstruction method based on serial port communication is a step for realizing the signal reconstruction device based on serial port communication as claimed in any one of claims 1 to 2.
4. A storage medium, characterized by The storage medium has a signal reconstruction program based on serial port communication stored thereon, and the signal reconstruction program based on serial port communication realizes the steps of the signal reconstruction method based on serial port communication as claimed in claim 3 when executed by the processor.
Citation Information
Patent Citations
MWC rear-end signal reconstruction method with analog filter compensation based on fast Fourier transform
CN110784229A
Audio processing method, virtual bass enhancement system and device, and storage medium
CN115442709A