Signal reconstruction device and method based on serial port communication and storage medium
By extracting and transmitting the time and frequency domain characteristics of signals in serial port communication and performing signal reconstruction on the mobile terminal, the problem of high-frequency components attenuation in serial port communication is solved, and efficient and accurate signal reconstruction is achieved.
Patent Information
- Application Number
- CN202510372809.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2045-03-27
AI Technical Summary
In serial communication, the continuous acquisition and transmission of broadband transient signals leads to attenuation or loss of high-frequency components, which in turn causes signal distortion and affects the reconstruction accuracy and integrity of the signal.
The microcontroller determines the low-frequency time domain signal and the high-frequency time domain signal based on the analog original signal, and extracts the original time domain characteristics and high-frequency frequency domain characteristics respectively, and transmits them to the mobile terminal through the serial port. The mobile terminal upsamples the low-frequency time domain signal, constructs a high-frequency compensation signal, and superimposes and reconstructs the low-frequency and high-frequency signals based on the original time domain characteristics.
It realizes efficient and accurate signal reconstruction in low bandwidth environments, significantly improving signal transmission efficiency and bandwidth utilization.
Smart Images

Figure CN120200883A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of signal processing, and in particular, to a signal reconstruction device, method, and storage medium based on serial communication. Background Art
[0002] As a common communication method, serial communication plays a key role in application scenarios such as industrial automation control, embedded system interconnection, and distributed sensor networks. However, limited by its inherent characteristics, in the continuous acquisition and transmission of broadband transient signals (instantaneous frequency ≥ 100 kHz), the original signal transmission will generate data flux exceeding the serial port threshold, resulting in attenuation or loss of high-frequency components of the signal when the serial port transmits such signals, causing serious signal distortion, and further affecting the reconstruction accuracy and integrity of the signal.
[0003] In existing technical solutions, data compression algorithms or methods of reducing the sampling rate are usually used to reduce the amount of data transmission to adapt to the bandwidth limitation of serial communication. However, although both data compression algorithms and sampling rate reduction can reduce the amount of data to a certain extent, they perform poorly in terms of high-frequency components and signal mutations of the signal during signal reconstruction. Therefore, traditional serial port transmission methods are difficult to meet the dual requirements of transmission efficiency and signal integrity at the same time.
[0004] The above content is only used to assist in understanding the technical solution of the present invention, and does not represent an admission that the above content is prior art. Summary of the Invention The main purpose of the present invention is to provide a signal reconstruction device, method, and storage medium based on serial communication, aiming to solve the technical problem of how to achieve efficient transmission and accurate reconstruction of signals.
[0005] To achieve the above purpose, the present invention provides a signal reconstruction device based on serial communication, and 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 upsample 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 perform superposition reconstruction on the low-frequency restored signal and the high-frequency compensation signal based on the original time-domain feature.
[0006] Optionally, determining a low-frequency time-domain signal and a high-frequency time-domain signal according to an analog original signal includes: Determining the high and low frequency cut-off frequencies corresponding to the analog original signal; Demarcate the original analog signal based on the high and low frequency cut-off frequencies through a filter to obtain a low-frequency time-domain signal and a high-frequency time-domain signal.
[0007] Optionally, demarcating the original analog signal based on the high and low frequency cut-off frequencies through a filter to obtain a low-frequency time-domain signal and a high-frequency time-domain signal includes: Based on the filter, construct a low-frequency transfer function and a high-frequency transfer function according to the high and low frequency cut-off frequencies, and convert the original analog signal into an original frequency-domain signal through Fourier transform; Determine the low-frequency time-domain signal according to the low-frequency transfer function and the original frequency-domain signal, and determine the high-frequency time-domain signal according to the high-frequency transfer function and the original frequency-domain signal.
[0008] Optionally, extracting original time-domain features from the original analog signal includes: Calculate the variances of multiple signal discrete points corresponding to the original analog signal through a preset sliding window; Determine the adjacent differences of multiple signal discrete points corresponding to the original analog signal; Extract at least one mutation signal discrete point from the original analog signal according to the adjacent differences of multiple signal discrete points and the variances of multiple signal discrete points; Determine the mutation point information corresponding to the at least one mutation signal discrete point; Determine the original time-domain features according to the mutation point information.
[0009] Optionally, extracting high-frequency frequency-domain features from the high-frequency time-domain signal includes: Convert the high-frequency time-domain signal into a high-frequency frequency-domain signal through Fourier transform; Generate a high-frequency spectrogram according to the high-frequency frequency-domain signal; Analyze the high-frequency spectrogram to obtain the frequency index, amplitude information, and phase information of the maximum frequency energy within the transmission period; Determine the high-frequency frequency-domain features according to the frequency index, the amplitude information, and the phase information.
[0010] Optionally, the single-chip microcomputer is further configured to 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 based on an incremental compression coding method according to a preset data frame structure.
[0011] Optionally, constructing a high-frequency compensation signal according to the high-frequency frequency-domain features includes: Extract the high-frequency frequency index, high-frequency amplitude, and high-frequency phase from the high-frequency frequency-domain features; Determine the frequency component interval according to the high-frequency frequency index; Perform spline interpolation processing on the high-frequency amplitude and the high-frequency phase respectively based on the frequency component interval to obtain a high-frequency interpolated amplitude and a high-frequency interpolated phase; Construct a high-frequency compensation signal according to the high-frequency interpolated amplitude and the high-frequency interpolated phase.
[0012] Optionally, performing spline interpolation processing on the high-frequency phase based on the frequency component interval to obtain a high-frequency interpolated phase includes: Calculate multiple frequency-phase differences of the high-frequency phase based on the frequency component interval; Adjust the multiple phase differences according to the phase change continuity condition, and perform spline interpolation processing on the adjusted multiple phase differences to obtain a high-frequency interpolated phase.
[0013] In addition, to achieve the above object, the present invention also proposes a signal reconstruction method based on serial port communication, and the signal reconstruction method based on serial port communication includes: The single-chip microcomputer determines a low-frequency time-domain signal and a high-frequency time-domain signal according to the analog raw signal, extracts the original time-domain feature and the high-frequency frequency-domain feature from the analog raw 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 the serial port; The mobile terminal performs upsampling on 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 performs superposition reconstruction on the low-frequency restored signal and the high-frequency compensation signal based on the original time-domain feature.
[0014] In addition, to achieve the above object, the present invention also proposes a storage medium, on which a signal reconstruction program based on serial port communication is stored. When the signal reconstruction program based on serial port communication is executed by a processor, the steps of the signal reconstruction method based on serial port communication as described above are implemented.
[0015] First, the single-chip microcomputer of the present invention determines a low-frequency time-domain signal and a high-frequency time-domain signal according to the analog raw signal, extracts the original time-domain feature and the high-frequency frequency-domain feature from the analog raw 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 the serial port. Then, the mobile terminal performs upsampling on 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 performs superposition reconstruction on the low-frequency restored signal and the high-frequency compensation signal based on the original time-domain feature. The present invention can achieve efficient and accurate signal reconstruction through the compressed transmission of frequency index, amplitude, phase, and mutation point information in a low-bandwidth environment, significantly improving the signal transmission efficiency and bandwidth utilization rate. Description of the Drawings
[0016] Figure 1 This is the structural block diagram of the first embodiment of the signal reconstruction device based on serial communication according to the present invention; Figure 2 This is the schematic diagram of the distribution of the signal down - frequency processing and reconstruction modules in the first embodiment of the signal reconstruction device based on serial communication according to the present invention; Figure 3 This is the schematic diagram of the serial port data frame structure in the first embodiment of the signal reconstruction device based on serial communication according to the present invention; Figure 4 This is the comparison result diagram of the original signal and the reconstructed signal in the first embodiment of the signal reconstruction device based on serial communication according to the present invention; Figure 5 This is the schematic flowchart of the first embodiment of the signal reconstruction method based on serial communication according to the present invention.
[0017] The realization of the purpose, functional features and advantages of the present invention will be further described with reference to the embodiments and the accompanying drawings. Specific embodiments
[0018] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0019] The embodiments of the present invention provide a signal reconstruction device based on serial communication. Referring to Figure 1 , Figure 1 This is the structural block diagram of the first embodiment of the signal reconstruction device based on serial communication according to the present invention.
[0020] In this 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 built - in with an analog - to - digital converter module (Analog - to - Digital Converter ADC), and the ADC module is used for signal sampling; The mobile terminal can be a PC terminal, and signal simulation and reconstruction need to be carried out in MATLAB on the PC terminal.
[0021] The single - chip microcomputer 1001 is used to determine a low - frequency time - domain signal and a high - frequency time - domain signal according to the analog raw signal, extract the original time - domain feature and the high - frequency frequency - domain feature from the analog raw 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 the serial port.
[0022] In specific implementation, it is necessary to directly sample the original signal (i.e., the analog raw signal) using the ADC module built in the MCU, and set the sampling frequency to ensure that the high - frequency part of the signal can be completely captured.
[0023] Further, the processing method for determining the low-frequency time-domain signal and the high-frequency time-domain signal from the analog raw signal is to determine the high and low-frequency cut-off frequencies corresponding to the analog raw signal; based on the high and low-frequency cut-off frequencies, the analog raw signal is demarcated by a filter to obtain the low-frequency time-domain signal and the high-frequency time-domain signal.
[0024] It should be understood that filters need to be set separately in the MCU. The filters include a low-pass filter and a high-pass filter, and the high and low-frequency cut-off frequencies are set as the demarcation to obtain the low-frequency time-domain signal and the high-frequency time-domain signal from the analog raw signal.
[0025] Further, the processing method for demarcating the analog raw signal by a filter based on the high and low-frequency cut-off frequencies to obtain the low-frequency time-domain signal and the high-frequency time-domain signal is to respectively construct a low-frequency transfer function and a high-frequency transfer function based on the filter according to the high and low-frequency cut-off frequencies, and convert the analog raw signal into an original frequency-domain signal through Fourier transform; determine the low-frequency time-domain signal according to the low-frequency transfer function and the original frequency-domain signal, and determine the high-frequency time-domain signal according to the high-frequency transfer function and the original frequency-domain signal.
[0026] A low-pass filter is used to obtain the low-frequency time-domain signal, and its low-frequency transfer function is:
[0027] Among them, is the high and low-frequency cut-off frequency, is the independent variable, is the imaginary unit, and the original signal is converted into the original frequency-domain signal through Fourier transform, and the part higher than the cut-off frequency is removed through the frequency response of the filter to obtain the low-frequency time-domain signal :
[0028] In the formula, is the inverse Fourier transform.
[0029] A high-pass filter is used to remove the low-frequency time-domain signal, and its high-frequency transfer function is:
[0030] Using this high-pass filter, the part higher than the cut-off frequency can be obtained :
[0031] For the analog original signal, in order to restore the mutation characteristics in the original signal as much as possible, especially for the instantaneous changes in the signal, such changes often show strong high-frequency components in the frequency domain and may not be fully restored in the limited frequency domain compensation. Therefore, the variances of multiple signal discrete points corresponding to the analog original signal are calculated by presetting a sliding window; the adjacent differences of multiple signal discrete points corresponding to the analog original signal are determined; at least one mutation signal discrete point is extracted from the analog original signal according to the adjacent differences of multiple signal discrete points and the variances of multiple signal discrete points; the mutation point information corresponding to at least one mutation signal discrete point is determined; and the original time domain characteristics are determined according to the mutation point information.
[0032] It should be understood that the analog original signal is composed of multiple signal discrete points, and the original time domain characteristics are the time stamps and original data of the mutation points.
[0033] In the specific implementation, for the signal discrete point at the current moment and the signal discrete point at the previous moment perform a difference operation to obtain the adjacent difference of the signal discrete point at the current moment : The adjacent difference of the signal discrete point at the current moment is obtained:
[0034] A sliding window with a size of is used to calculate the variance of the signal discrete point at the current moment : :
[0035] where are the first data points starting from the current moment.
[0036] Set the mutation threshold at the current moment. When , it is determined that the current point is a mutation point, and the time stamp of this point (i.e., the mutation point) is recorded as , and the original data of this point is .
[0037] It should also be noted that the mutation point information includes the time stamp and the original data.
[0038] Furthermore, the processing method for extracting high-frequency frequency domain characteristics 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; generate a high-frequency spectrogram according to the high-frequency frequency domain signal; analyze the high-frequency spectrogram to obtain the frequency index, amplitude information, and phase information of the maximum frequency energy within the transmission period; and determine the high-frequency frequency domain characteristics according to the frequency index, amplitude information, and phase information.
[0039] The high-frequency frequency domain features include frequency index, amplitude information, and phase information.
[0040] In this embodiment, in terms of the frequency domain, first, the obtained by the high-pass filter is subjected to FFT operation to extract the frequency indices of the maximum frequency energies within a preset number (e.g., the first 10) in one transmission period , amplitudes and phases .
[0041] Among them, the frequency component is calculated by the sampling frequency of the signal and the number of points of the FFT:
[0042] Wherein, is the frequency index, is the number of sampling points of the signal.
[0043] The amplitude is the modulus of the frequency domain signal , that is:
[0044] Wherein, and are respectively the real part and the imaginary part of the complex frequency domain signal .
[0045] The phase is the angle of the complex frequency domain signal :
[0046] For each frequency component , the corresponding energy can be expressed as the square of the amplitude:
[0047] It should also be noted that the single-chip microcomputer is further configured to transmit the low-frequency time domain signal, the original time domain features, and the high-frequency frequency domain features to the mobile terminal through the serial port based on the incremental compression coding method according to the preset data frame structure.
[0048] In this embodiment, referring to Figure 2 , Figure 2 is the schematic diagram of the signal downsampling processing and reconstruction module distribution of the first embodiment of the signal reconstruction device based on serial communication of the present invention. It is also necessary to construct a preset data frame structure, which includes a frame header, a timestamp, a sampling frequency, a sampling number, a low-frequency time domain signal, original time domain features, high-frequency frequency domain features, and a frame tail (check code).
[0049] Reference Figure 3 , Figure 3 It is a schematic diagram of the serial port data frame structure of the first embodiment of the signal reconstruction device based on serial port communication of the present invention. The frame header includes a data type identifier and a data length, and the timestamp is used to synchronize the data. The high-frequency frequency domain features include amplitude, phase, and frequency index. Information such as the position and time of mutation points in the original time domain features is all encoded using delta compression to reduce the data transmission volume. The frame tail includes a CRC or other form of check code to verify data integrity. These data are encapsulated in a predetermined format and transmitted to the PC side through the serial port.
[0050] The mobile terminal 1002 is used to upsample 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 features, and perform superposition reconstruction on the low-frequency restored signal and the high-frequency compensation signal based on the original time domain features.
[0051] Further, on the PC side, it is necessary to perform deframing processing on the received data frame in advance to obtain the deframed low-frequency time domain signal, original time domain features, and high-frequency frequency domain features.
[0052] Preprocess the low-frequency time domain signal, including: the received low-frequency time domain signal Perform cubic spline interpolation to restore it to the original sampling rate , and obtain a low-frequency restored signal .
[0053]
[0054] Among them, are coefficients calculated from known data points. This 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.
[0055] Further, the processing method for constructing the high-frequency compensation signal according to the high-frequency frequency domain features is to extract the high-frequency frequency index (i.e., frequency index), high-frequency amplitude (i.e., amplitude information), and high-frequency phase (i.e., phase information) from the high-frequency frequency domain features; determine the frequency component interval according to the high-frequency frequency index; perform spline interpolation processing on the high-frequency amplitude and high-frequency phase respectively based on the frequency component interval to obtain the high-frequency interpolated amplitude and high-frequency interpolated phase; construct the high-frequency compensation signal according to the high-frequency interpolated amplitude and high-frequency interpolated phase.
[0056] Frequency domain compensation includes according to the received discrete high-frequency amplitude spectrum information , in each frequency component interval , is any point in the frequency component interval, use piecewise cubic spline interpolation to obtain the interpolation polynomial .
[0057]
[0058] Among them, is the coefficient calculated through known points. All piecewise interpolation polynomials within one transmission period are combined into , is the high-frequency interpolation amplitude.
[0059] Based on the frequency component interval, spline interpolation is performed on the high-frequency phase. The processing method for obtaining the high-frequency interpolation phase is to calculate multiple frequency phase differences of the high-frequency phase based on the frequency component interval; according to the condition of continuous phase change (i.e., continuous phase change), multiple phase differences are adjusted, and spline interpolation is performed on the adjusted multiple phase differences to obtain the high-frequency interpolation phase.
[0060] In this embodiment, to perform wrapping processing on the phase, first calculate and interpolation (i.e., frequency phase difference) . If , then . If , then to make the phase change continuous, avoid large jumps by adjusting the phase difference, and then use cubic spline interpolation to obtain the high-frequency interpolation phase . The compensated high-frequency signal (i.e., high-frequency compensation signal) is:
[0061] In specific implementation, the mutation point recovery is used to restore the mutation characteristics in the original signal, and the step function is used to simulate signal mutation.
[0062]
[0063] Finally, the PC side completes the reconstruction of the signal:
[0064] Using the correlation coefficient, compare the restoration rate of the reconstructed signal compared to the original signal. The formula for using the correlation coefficient is:
[0065] In the formula, r is the restoration rate.
[0066] It should also be noted that if the restoration rate is greater than the preset threshold, the reconstructed signal is output. If it is less than the preset threshold, the PC side reprocesses the low-frequency time-domain signal, the original time-domain characteristics, and the high-frequency frequency-domain characteristics.
[0067] In this example, refer toFigure 4 , Figure 4 This is the comparison result graph of the original signal and the reconstructed signal of the first embodiment of the signal reconstruction device based on serial communication of the present invention. The ADC sampling frequency is , and the low-frequency signals respectively have , , , , and the high-frequency signals respectively have , , , . The set cut-off frequency is . According to the signal transmitted , each data point requires 1 byte for calculation. If the original signal needs to be completely reconstructed, the required transmission rate is , far exceeding the upper limit rate of serial port transmission. When using the downsampling processing transmission and reconstruction method, each data frame contains a low-frequency data signal, 10 mutation point data and the mutation point time, 10 frequency indexes with the largest frequency energy and the corresponding amplitude and phase data. In addition, there are also transmission timestamps, frame headers, frame tail checksums, etc. The data volume is 63 bytes, and the data transmission is periodic transmission. The transmission period used in this example is used to calculate that the required transmission rate is , far less than the rate required to completely reconstruct the original signal. In this example, the original signal, the reconstructed signal and the local enlarged view of any selected time period are presented in matlab as Figure 4 shown. By selecting the amplitude peak value within this time period, at the same moment, the peak error rate is 0.21%. Using the correlation coefficient to measure the reduction rate of the reconstructed signal to the original signal, the reduction rate reaches 98.68%.
[0068] 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 feature and the high-frequency frequency-domain feature from the analog original signal and the high-frequency time-domain signal respectively. Then, the low-frequency time-domain signal, the original time-domain feature and the high-frequency frequency-domain feature are transmitted to the mobile terminal through the serial port. Then, the mobile terminal upsamples the low-frequency time-domain signal to obtain the low-frequency restored signal, constructs the high-frequency compensation signal according to the high-frequency frequency-domain feature, and performs superposition reconstruction on the low-frequency restored signal and the high-frequency compensation signal based on the original time-domain feature. This embodiment can achieve efficient and accurate signal reconstruction through the compressed transmission of frequency indexes, amplitudes, phases and mutation point information in a low-bandwidth environment, significantly improving the signal transmission efficiency and bandwidth utilization rate.
[0069] Referring to Figure 5 , Figure 5 This is the flow chart of the first embodiment of the signal reconstruction method based on serial communication of the present invention.
[0070] As Figure 5 shown, the signal reconstruction method based on serial communication proposed in the embodiment of the present invention includes: 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, 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, 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 the serial port; Step S20: The mobile terminal upsamples 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 performs superimposed reconstruction on the low-frequency restored signal and the high-frequency compensation signal based on the original time-domain feature.
[0071] For other embodiments or specific implementation manners of the signal reconstruction method based on serial communication of the present invention, reference may be made to the above method embodiments, which will not be elaborated herein.
[0072] It should be noted that in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including that element.
[0073] The above serial numbers of the embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments.
[0074] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation manner. Based on such an understanding, the technical solution of the present invention, in essence, or the part that makes a contribution to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as a read-only memory / random access memory, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0075] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent structure or equivalent process transformation made by using the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present invention.
Claims
1. A signal reconstruction device based on serial communication, characterized in that: The signal reconstruction device based on serial communication includes a single chip microcomputer and a mobile terminal; The single chip microcomputer is used to determine a low-frequency time domain signal and a high-frequency time domain signal according to the original analog signal, and extract original time domain features and 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; The mobile terminal is used to upsample the low-frequency time domain signal to obtain a low-frequency restoration signal, construct a high-frequency compensation signal according to the high-frequency frequency domain characteristics, and superimpose and reconstruct the low-frequency restoration signal and the high-frequency compensation signal based on the original time domain characteristics.
2. The device according to claim 1, characterized in that Determine the low-frequency time domain signal and the high-frequency time domain signal according to the original analog signal, including: Determine the high and low frequency cutoff frequencies corresponding to the original analog signal; The analog original signal is demarcated through a filter based on the high and low frequency cutoff frequencies to obtain a low frequency time domain signal and a high frequency time domain signal.
3. The device according to claim 2, characterized in that The analog original signal is demarcated by a filter based on the high and low frequency cutoff frequencies to obtain a low frequency time domain signal and a high frequency time domain signal, including: Based on the filter, a low-frequency transfer function and a high-frequency transfer function are constructed respectively according to the high and low frequency cutoff frequencies, and the analog original signal is converted into an original frequency domain signal through Fourier transformation; A low-frequency time-domain signal is determined according to the low-frequency transfer function and the original frequency-domain signal, and a high-frequency time-domain signal is determined according to the high-frequency transfer function and the original frequency-domain signal.
4. The device according to claim 1, characterized in that Extracting original time domain features from the original analog signal includes: Calculating the variance of multiple signal discrete points corresponding to the original analog signal through a preset sliding window, and determining adjacent differences of multiple signal discrete points corresponding to the original analog signal; Extracting at least one mutation signal discrete point from the analog original signal according to adjacent differences of a plurality of signal discrete points and variances of a plurality of signal discrete points; Determining mutation point information corresponding to the at least one mutation signal discrete point; The original time domain features are determined according to the mutation point information.
5. The device according to claim 4, characterized in that Extracting high-frequency frequency domain features from the high-frequency time domain signal includes: Converting the high-frequency time domain signal into a high-frequency frequency domain signal by Fourier transform; Generate a high-frequency spectrum diagram according to the high-frequency frequency domain signal; Analyze the high-frequency spectrum diagram to obtain the frequency index, amplitude information and phase information of the maximum frequency energy in the transmission period; A high-frequency frequency domain feature is determined according to the frequency index, the amplitude information and the phase information.
6. The device according to any one of claims 1 to 5, characterized in that: The single chip microcomputer is also used 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 an incremental compression coding method according to a preset data frame structure.
7. The device according to claim 6, characterized in that Constructing a high-frequency compensation signal according to the high-frequency frequency domain characteristics, including: Extracting a high-frequency frequency index, a high-frequency amplitude and a high-frequency phase from the high-frequency frequency domain features; Determine a frequency component interval according to the high frequency index; Based on the frequency component interval, respectively, the high-frequency amplitude and the high-frequency phase are subjected to spline interpolation processing to obtain a high-frequency interpolation amplitude and a high-frequency interpolation phase; A high frequency compensation signal is constructed according to the high frequency interpolation amplitude and the high frequency interpolation phase.
8. The device according to claim 7, characterized in that 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; A plurality of phase differences are adjusted according to a phase change continuity condition, and a spline interpolation process is performed on the adjusted plurality of phase differences to obtain a high-frequency interpolation phase.
9. A signal reconstruction method based on serial communication, characterized in that: The signal reconstruction method based on serial communication includes: The single-chip computer determines a low-frequency time domain signal and a high-frequency time domain signal according to the original analog signal, extracts original time domain features and high-frequency frequency domain features from the original analog signal and the high-frequency time domain signal, respectively, and transmits the low-frequency time domain signal, the original time domain features and the high-frequency frequency domain features to the mobile terminal through the serial port; The mobile terminal upsamples the low-frequency time domain signal to obtain a low-frequency restoration signal, constructs a high-frequency compensation signal according to the high-frequency frequency domain characteristics, and superimposes and reconstructs the low-frequency restoration signal and the high-frequency compensation signal based on the original time domain characteristics.
10. A storage medium, characterized in that: The storage medium stores a signal reconstruction program based on serial port communication, and when the signal reconstruction program based on serial port communication is executed by the processor, the steps of the signal reconstruction method based on serial port communication according to claim 9 are implemented.
Citation Information
Patent Citations
Noninvasive blood glucose detection method based on spectrum analysis
CN110338813A
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
Direct-current transmission high-frequency harmonic measuring device and measuring method
CN119355367A
High-frequency digital filtering system based on fast Fourier transform
CN119519661A