Frequency spectrum control method, circuit, chip and system of ultrasonic signal
By generating spectral envelope parameters and selecting dwell frequency points, the problems of insufficient storage resources and flexibility in ultrasonic detection systems are solved, achieving efficient spectrum control and improving system performance and application range.
Patent Information
- Application Number
- CN202511695315.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-18
- Publication Date
- 2025-12-30
AI Technical Summary
In existing technologies, ultrasonic detection systems cannot balance saving storage resources and flexibility in terms of spectrum control, resulting in limitations in performance and application scope.
By generating spectral envelope parameters, selecting dwell frequency points, and determining dwell period, frequency hopping patterns are generated, enabling the recovery and control of the spectral envelope, reducing storage requirements while achieving flexible spectrum control.
While saving storage resources, it achieves flexible spectrum control, improving the performance and application range of the ultrasonic detection system.
Smart Images

Figure CN121237100A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of signal processing technology, and specifically to a method, circuit, chip, and system for spectrum control of ultrasonic signals. Background Technology
[0002] Ultrasonic detection systems, with their superior detection, imaging, and analysis capabilities, are widely used in medical diagnostics, industrial measurement, underwater detection (sonar), and scientific research. Their basic working principle involves converting electrical energy into acoustic energy through a transducer, emitting ultrasonic signals, and receiving echo signals. The distance to the target object is then calculated based on the time difference. The frequency spectrum is a core parameter of the ultrasonic signal, directly determining its penetration ability, resolution, and interaction with the material being detected. Therefore, controlling the frequency spectrum of the ultrasonic signal can improve the performance of the ultrasonic detection system.
[0003] In related technologies, one spectrum control scheme involves controlling the spectrum by storing the sequence corresponding to the spectrum. However, this sequence-based spectrum control scheme consumes a large amount of storage resources, increasing hardware complexity and cost.
[0004] To conserve storage resources, another spectrum control scheme in related technologies involves controlling the spectrum by configuring some basic parameters (e.g., start frequency, step frequency, etc.). While this scheme saves storage resources to some extent, it cannot achieve flexible spectrum control. For example, when using start frequency and step frequency for spectrum control, only the spectrum of a chirp signal with linearly changing frequency can be generated. If more complex spectrum shapes are required, additional configuration parameters are needed, which not only increases computational overhead but also limits the diversity and adaptability of the signal.
[0005] It should be noted that the information disclosed in the background section of this application is intended only to enhance the understanding of the general background of this application, and should not be construed as an admission or in any way implying that the information constitutes prior art known to those skilled in the art. Summary of the Invention
[0006] This application provides a method, circuit, chip, and system for spectrum control of ultrasonic signals, which helps to solve the problem that existing technologies cannot simultaneously save storage resources and provide flexible spectrum control, thus limiting the performance and application range of ultrasonic detection systems.
[0007] In a first aspect, embodiments of this application provide a method for spectrum control of ultrasonic signals, comprising: A spectral envelope corresponding to the spectral envelope parameters is generated based on the spectral envelope parameters, wherein the spectral envelope parameters include the rate of change of envelope values for multiple frequency bands, the number of frequency points in each frequency band, and the envelope value of a reference frequency point; According to a preset frequency selection strategy, multiple dwelling frequency points are sequentially selected between the start and end frequency points of the spectrum envelope to obtain a dwelling frequency point sequence. Based on the total number of dwell periods and the spectral envelope, the dwell period of each dwell frequency point in the dwell frequency point sequence is determined, and a frequency hopping pattern composed of the dwell frequency point sequence and the dwell period is obtained.
[0008] In one possible implementation, the spectral envelope parameter is a compressed spectral envelope parameter, which is obtained by merging adjacent frequency bands with similar rates of change of envelope values in the original spectral envelope parameter.
[0009] In one possible implementation, generating a spectral envelope corresponding to the spectral envelope parameters based on the spectral envelope parameters includes: Based on the identification information corresponding to the target spectral envelope waveform, determine the spectral envelope parameters corresponding to the target spectral envelope waveform; A spectral envelope corresponding to the spectral envelope parameters corresponding to the target spectral envelope waveform is generated.
[0010] In one possible implementation, generating a spectral envelope corresponding to the spectral envelope parameters based on the spectral envelope parameters includes: The envelope value difference between the reference frequency point and any frequency point in the spectral envelope parameters is determined based on the frequency difference between the reference frequency point and any frequency point, and the rate of change of the envelope value between the reference frequency point and any frequency point. The envelope value of any frequency point is determined based on the envelope value of the reference frequency point and the difference between the envelope values.
[0011] In one possible implementation, the reference frequency point is the start or end frequency point of the spectral envelope.
[0012] In one possible implementation, the step of sequentially selecting multiple stationary frequency points between the start and end frequency points of the spectrum envelope according to a preset frequency point selection strategy to obtain a stationary frequency point sequence includes: Among the various preset frequency selection strategies, the target frequency selection strategy is determined; According to the target frequency selection strategy, multiple stationary frequency points are selected sequentially between the start and end frequency points of the spectrum envelope to obtain a stationary frequency point sequence. Among them, the frequency selection strategies include at least two of pseudo-random pattern frequency hopping, fixed pattern frequency hopping, adaptive pattern frequency hopping, and chaotic pattern frequency hopping.
[0013] In one possible implementation, determining the dwell period of each of the dwell frequency points in the dwell frequency point sequence based on the total number of dwell periods and the spectral envelope includes: Based on the spectral envelope, determine the envelope value of each of the stationary frequency points in the stationary frequency point sequence; The dwell period of each dwell frequency is determined by multiplying the total number of dwell periods by the envelope value of each dwell frequency.
[0014] In one possible implementation, determining the dwell period of each dwell frequency point based on the product of the total number of dwell periods and the envelope value of each dwell frequency point includes: The initial value of the dwell time of the current dwell frequency point is determined by multiplying the total number of dwell times by the envelope value of the current dwell frequency point. If the current dwell frequency is the first dwell frequency, then the initial value of the dwell period of the current dwell frequency is used as the accumulated value of the dwell period of the current dwell frequency. If the current dwell frequency is not the first dwell frequency, then the initial value of the dwell period of the current dwell frequency is added to the residual value of the previous dwell frequency to obtain the accumulated value of the dwell period of the current dwell frequency. The accumulated dwell time value of the current dwell frequency point is rounded down to obtain the dwell time and residual value of the current dwell frequency point; The above steps are performed sequentially for each of the aforementioned frequency points until the dwell time of all the aforementioned frequency points is obtained.
[0015] In one possible implementation, the step of rounding down the accumulated residence period value of the current residence frequency point to obtain the residence period and residual value of the current residence frequency point includes: If the accumulated dwell time value of the current dwell frequency point is greater than or equal to the minimum dwell time value, then the accumulated dwell time value of the current dwell frequency point is rounded down to obtain the dwell time and residual value of the current dwell frequency point. If the accumulated residence period value of the current residence frequency point is less than the minimum residence period value, then the accumulated residence period value of the current residence frequency point is used as the residual value.
[0016] In one possible implementation, after obtaining the frequency hopping pattern composed of the dwell frequency sequence and the dwell period, the method further includes: The signal corresponding to the frequency hopping pattern is input into the transmission control module to control the transmission of the ultrasonic signal; The signal corresponding to the frequency hopping pattern is input into the receiving control module, and the correlation coefficient of the signal corresponding to the frequency hopping pattern is calculated. The correlation coefficient is used to characterize the reliability of the signal.
[0017] In one possible implementation, the step of inputting the signal corresponding to the frequency hopping pattern into the receiving module and calculating the signal correlation coefficient corresponding to the frequency hopping pattern includes: The signal corresponding to the frequency hopping pattern is input into the receiving module and subtracted from the local oscillation frequency to obtain the difference frequency signal; The difference frequency signal is sampled according to a preset sampling interval to obtain the instantaneous phase difference corresponding to each dwell frequency point; The instantaneous phase differences corresponding to all the dwell frequency points are accumulated to obtain the phase of the signal corresponding to the frequency hopping pattern; The correlation coefficient of the signal corresponding to the frequency hopping pattern is determined based on the phase of the signal corresponding to the frequency hopping pattern.
[0018] Secondly, embodiments of this application provide a spectrum control circuit for ultrasonic signals, comprising: The spectrum envelope recovery module is used to generate a spectrum envelope corresponding to the spectrum envelope parameters according to the spectrum envelope parameters. The spectrum envelope parameters include the rate of change of envelope values of multiple frequency bands, the number of frequency points in each frequency band, and the envelope value of a reference frequency point. The dwell frequency selection module is used to select multiple dwell frequency points sequentially between the start frequency point and the end frequency point of the spectrum envelope according to a preset frequency selection strategy, so as to obtain a dwell frequency point sequence. The dwell period determination module is used to determine the dwell period of each dwell frequency point in the dwell frequency point sequence based on the total number of dwell periods and the spectral envelope, so as to obtain a frequency hopping pattern composed of the dwell frequency point sequence and the dwell period.
[0019] Thirdly, embodiments of this application provide an integrated circuit chip, including: the spectrum control circuit described in the second aspect.
[0020] Fourthly, embodiments of this application provide an ultrasonic detection system, comprising: an ultrasonic sensor; a spectrum control circuit as described in the second aspect or an integrated circuit chip as described in the third aspect, wherein the spectrum control circuit or the integrated circuit chip is electrically connected to the ultrasonic sensor.
[0021] Compared to existing technologies, this embodiment only requires storing a small amount of spectral envelope parameters. When needed, the spectral envelope is recovered using these parameters, and a signal with a corresponding spectral envelope shape can be generated based on the appropriate dwell frequency and dwell period selection strategy. This saves storage resources while enabling flexible spectrum control, thereby improving the performance and application range of the ultrasonic detection system. Attached Figure Description
[0022] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1A A schematic diagram of the overall framework of an ultrasonic signal spectrum control scheme provided in an embodiment of this application; Figure 1B A flowchart illustrating a spectrum control method for ultrasonic signals provided in an embodiment of this application; Figure 2 A schematic diagram of the spectrum envelope provided in an embodiment of this application; Figure 3A and Figure 3B A schematic diagram of the circuit structure of a spectrum envelope recovery module provided in an embodiment of this application; Figure 4 A schematic flowchart illustrating a method for calculating the residence period provided in this application embodiment; Figure 5 A circuit structure diagram of a dwell frequency selection module and a dwell period determination module provided in an embodiment of this application; Figure 6 A flowchart illustrating another method for spectrum control of ultrasonic signals provided in this application embodiment; Figure 7 A schematic diagram of the circuit structure of a transmit control module and a receive control module provided in an embodiment of this application; Figure 8 A schematic diagram comparing the designed and generated values of a spectrum provided in this application embodiment; Figure 9 This application provides an example of an actual output signal spectrum. Figure 10 The present application also provides a structural block diagram of an ultrasonic signal spectrum control circuit. Detailed Implementation
[0024] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0025] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0026] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0027] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0028] Ultrasonic detection systems, with their superior detection, imaging, and analysis capabilities, are widely used in medical diagnostics, industrial measurement, underwater detection (sonar), and scientific research. Their basic working principle involves converting electrical energy into acoustic energy through a transducer, emitting ultrasonic signals, and receiving echo signals. The distance to the target object is then calculated based on the time difference. The frequency spectrum is a core parameter of the ultrasonic signal, directly determining its penetration ability, resolution, and interaction with the material being detected. Therefore, controlling the frequency spectrum of the ultrasonic signal can improve the performance of the ultrasonic detection system.
[0029] In related technologies, one spectrum control scheme involves controlling the spectrum by storing sequences corresponding to the spectrum (e.g., the frequencies to be transmitted and the dwell time for each frequency). However, this sequence-based spectrum control scheme consumes a large amount of storage resources, increasing hardware complexity and cost.
[0030] To conserve storage resources, another spectrum control scheme in related technologies involves controlling the spectrum by configuring some basic parameters (e.g., start frequency, step frequency, etc.). While this scheme saves storage resources to some extent, it cannot achieve flexible spectrum control. For example, when using start frequency and step frequency for spectrum control, only the spectrum of a chirp signal with linearly changing frequency can be generated. If more complex spectrum shapes are required, additional configuration parameters are needed, which not only increases computational overhead but also limits the diversity and adaptability of the signal.
[0031] To address the above problems, embodiments of this application provide a spectrum control scheme for ultrasonic signals. For example... Figure 1A As shown, the ultrasonic signal spectrum control scheme provided in this application includes two parts: offline algorithm preprocessing and real-time circuit control processing. In the offline algorithm preprocessing part, a spectrum envelope parameter generation module generates spectrum envelope parameters corresponding to the spectrum envelope and stores them locally. In the real-time circuit control processing part, a spectrum envelope recovery module selects the corresponding spectrum envelope parameters locally based on the identification information corresponding to the spectrum envelope waveform and performs a spectrum envelope recovery operation to obtain the corresponding spectrum envelope. The frequency hopping pattern generation module specifically includes a dwell frequency selection module and a dwell period determination module. The dwell frequency selection module selects multiple dwell frequency points sequentially between the start and end frequencies of the spectrum envelope according to a preset frequency selection strategy to obtain a dwell frequency sequence. The dwell period determination module determines the dwell period of each dwell frequency point in the dwell frequency sequence based on the total number of dwell periods and the spectrum envelope, thereby obtaining a frequency hopping pattern composed of the dwell frequency sequence and the dwell period. Furthermore, the signals corresponding to the frequency hopping pattern are input into the transmission control module and the reception control module respectively, thereby controlling the transmission and reception of ultrasonic signals.
[0032] In this embodiment, only a small amount of spectral envelope parameters need to be stored. When needed, the spectral envelope is recovered using these parameters, and a signal with a corresponding spectral envelope shape can be generated based on the appropriate dwell frequency and dwell period selection strategy. This saves storage resources while enabling flexible spectrum control, thereby improving the performance and application range of the ultrasonic detection system. The specific implementation will be described in detail below.
[0033] See Figure 1B This is a flowchart illustrating a method for spectrum control of ultrasonic signals provided in an embodiment of this application. Figure 1B As shown, it mainly includes the following steps.
[0034] Step S101: Generate a spectral envelope corresponding to the spectral envelope parameters based on the spectral envelope parameters.
[0035] For ease of explanation, let For discrete frequency points Let be the spectral envelope function of the independent variable, where The number representing the launch One frequency point, It is understandable that the envelope values corresponding to each frequency point in the spectral envelope function can be directly stored (i.e., Sequences will consume a lot of storage resources.
[0036] To address the aforementioned issues, in this embodiment, the spectral envelope is divided into multiple frequency bands, and the rate of change of the envelope value in each band, the number of frequency points in each band, and the envelope value of the reference frequency point are recorded (this information can be collectively referred to as "spectral envelope parameters"). In use, the envelope value corresponding to each frequency point can be deduced from the spectral envelope parameters, thus achieving spectral envelope recovery.
[0037] Specifically, based on the frequency difference between the reference frequency and any frequency in the spectral envelope parameters, and the rate of change of the envelope value between the reference frequency and any frequency, the envelope value difference between the reference frequency and any frequency can be determined; based on the envelope value of the reference frequency and the envelope value difference, the envelope value of any frequency can be determined. For ease of understanding, let... Reference frequency point frequency band The rate of change of the envelope value, then It is understandable that, based on this relationship, the envelope value corresponding to each frequency point can be determined, that is, the spectral envelope can be recovered.
[0038] It should be further noted that in practical applications, the frequency points in the discrete spectral envelope are usually evenly distributed, meaning that the frequency difference between adjacent frequency points is equal. Therefore, the spectral envelope parameters typically do not need to include the frequency differences between frequency bands or the frequency values of each frequency point. Of course, those skilled in the art can add the frequency differences between frequency bands or the frequency values of each frequency point to the spectral envelope parameters according to actual needs, and this application does not impose specific limitations on this.
[0039] Furthermore, if the frequency difference between adjacent frequency points is 1, then It can be simplified to: It is understandable that the simplified implementation scheme of the relational expression facilitates the design of the hardware circuit, making the hardware circuit structure simpler. The circuit structure of the spectrum envelope recovery module will be described in detail below.
[0040] In one possible implementation, the reference frequency is either the starting or ending frequency of the spectral envelope. It is understood that when the reference frequency is the starting frequency of the spectral envelope, the envelope value of each frequency point can be derived sequentially along the direction of frequency increase; conversely, when the reference frequency is the ending frequency of the spectral envelope, the envelope value of each frequency point can be derived sequentially along the direction of frequency decrease. Therefore, selecting the starting or ending frequency of the spectral envelope as the reference frequency is more conducive to the calculation of the spectral envelope. Of course, those skilled in the art can also choose one or more other frequencies in the spectral envelope as the reference frequency according to actual needs, and this application embodiment does not impose specific limitations in this regard.
[0041] In practical applications, the spectral envelope may contain adjacent frequency bands with similar rates of change in envelope values. These adjacent bands can be merged using spectral approximation principles to further compress the spectral envelope parameters, thereby saving storage resources. For clarity, the uncompressed spectral envelope is referred to as the "original spectral envelope," and its spectral envelope parameters are called the "original spectral envelope parameters." The compressed spectral envelope is referred to as the "compressed spectral envelope," and its spectral envelope parameters are called the "compressed spectral envelope parameters." It is understood that the number of frequency bands in the compressed spectral envelope parameters is less than the number of frequency bands in the original spectral envelope parameters.
[0042] See Figure 2 This is a schematic diagram of a spectral envelope provided in an embodiment of this application. Figure 2 The spectral envelope shown in 2A is the original spectral envelope. Figure 2 The spectral envelope shown in 2B is the compressed spectral envelope.
[0043] like Figure 2 As shown in 2A, the original spectral envelope is divided into 8 frequency bands, namely... .make Using the reference frequencies, the rate of change of the envelope values (i.e., the slope of the corresponding line segments) for these 8 frequency bands are as follows: The number of frequency points corresponding to these 8 frequency bands are as follows: Then its original spectral envelope parameters are: , , If the frequency points that intersect between two adjacent frequency bands are counted in the previous frequency band, then... , All are 1. Of course, the frequency points that intersect between two adjacent frequency bands can also be counted in the next frequency band, and this application does not impose specific restrictions on this.
[0044] like Figure 2 As shown in 2B, the compressed spectral envelope is divided into three frequency bands, namely... .make Using the reference frequency, the rate of change of the envelope value (i.e., the slope of the corresponding line segment) for these three frequency bands are as follows: The number of frequency points corresponding to these three frequency bands are as follows: Then its corresponding compressed spectral envelope parameters are: , , If the frequency points that intersect between two adjacent frequency bands are counted in the previous frequency band, then... .
[0045] It is understandable that the number of parameters in the compressed spectral envelope parameters is smaller than that in the original spectral envelope parameters. Therefore, by performing spectral approximation compression on the original spectral envelope parameters, storage resources can be further saved.
[0046] In practical applications, multiple sets of spectral envelope parameters (original or compressed) corresponding to different spectral envelopes can be stored. When using them, the spectral envelope parameters corresponding to the target spectral envelope waveform can be determined first based on the identification information. Then, based on the spectral envelope parameters corresponding to the target spectral envelope waveform, a spectral envelope corresponding to the spectral envelope parameters can be generated to achieve spectral envelope diversity.
[0047] See Figure 3A and Figure 3B This is a schematic diagram of the circuit structure of a spectrum envelope recovery module provided in an embodiment of this application. Figure 3A and Figure 3B As shown, the spectrum envelope recovery module includes a first selection unit 101, a second selection unit 102, a first adder 103, and a first delay unit 104. Among them, Figure 3A To Figure 2 A illustrates the application scenario for spectral envelope recovery using the original spectral envelope parameters shown in Figure 1. Figure 3B To Figure 2 Application scenarios for spectral envelope recovery using the compressed spectral envelope parameters shown in B are explained below.
[0048] like Figure 3A As shown, after receiving the identification information corresponding to the target spectrum envelope waveform, the first selection unit 101 can select the envelope value change rate corresponding to the target spectrum envelope waveform based on the identification information. After receiving the identification information corresponding to the target spectrum envelope waveform, the second selection unit 102 can select the envelope value of the reference frequency point corresponding to the target spectrum envelope waveform according to the identification information. The first adder 103 will add the envelope value of the reference frequency point. With the rate of change of envelope value The envelope values are accumulated sequentially, and the envelope values of the corresponding frequency points are output sequentially. .
[0049] Specifically, at the first moment, the first selection unit 101 outputs a frequency band. rate of change of envelope value The first adder 103; the second selection unit 102 output frequency point Envelope value of (reference frequency) The signal is sent to the first delay unit 104, and after being delayed by the first delay unit 104, it will... The output is sent to the first adder 103; the first adder 103 will... and Add together, output frequency envelope value Thus, the frequency band is now complete. Calculation of envelope value at internal frequency point.
[0050] At the second moment, the first selection unit 101 outputs the frequency band. rate of change of envelope value To the first adder 103; After being delayed by the first delay unit 104, the output is sent to the first adder 103; the first adder 103 will... and Add together, output frequency envelope value Thus, the frequency band is complete. Calculation of envelope value at internal frequency point.
[0051] At the third moment, the first selection unit 101 outputs the frequency band. rate of change of envelope value To the first adder 103; After being delayed by the first delay unit 104, the output is sent to the first adder 103; the first adder 103 will... and Add together, output frequency envelope value Thus, the frequency band is now complete. Calculate the envelope value of the internal frequency points. Repeat this process until the envelope values of all frequency points are output.
[0052] like Figure 3B As shown, after receiving the identification information corresponding to the target spectrum envelope waveform, the first selection unit 101 can select the envelope value change rate corresponding to the target spectrum envelope waveform based on the identification information. After receiving the identification information corresponding to the target spectrum envelope waveform, the second selection unit 102 can select the envelope value of the reference frequency point corresponding to the target spectrum envelope waveform according to the identification information. The first adder 103 will add the envelope value of the reference frequency point. With the rate of change of envelope value The envelope values are accumulated sequentially, and the envelope values of the corresponding frequency points are output sequentially. .
[0053] Specifically, at the first moment, the first selection unit 101 outputs a frequency band. rate of change of envelope value The first adder 103; the second selection unit 102 output frequency point Envelope value of (reference frequency) The signal is sent to the first delay unit 104, and after being delayed by the first delay unit 104, it will... The output is sent to the first adder 103; the first adder 103 will... and Add together, output frequency envelope value At the second moment, After being delayed by the first delay unit 104, the output is sent to the first adder 103; the first adder 103 will... and Add them together again to get the output frequency. envelope value At the third moment, After being delayed by the first delay unit 104, the output is sent to the first adder 103; the first adder 103 will... and Add them together again to get the output frequency. envelope value Thus, the frequency band is now complete. Frequency reduction The envelope values for the other three frequency points are calculated. It should be noted that, due to frequency points... As the reference frequency, therefore, frequency envelope value It can be obtained directly.
[0054] At the fourth moment, the first selection unit 101 outputs the frequency band. rate of change of envelope value To the first adder 103; After being delayed by the first delay unit 104, the output is sent to the first adder 103; the first adder 103 will... and Add together, output frequency envelope value At the fifth moment, After being delayed by the first delay unit 104, the output is sent to the first adder 103; the first adder 103 will... and Add them together again to get the output frequency. envelope value At the sixth moment, After being delayed by the first delay unit 104, the output is sent to the first adder 103; the first adder 103 will... and Add them together again to get the output frequency. envelope value Thus, the frequency band is now complete. Calculate the envelope values for the three inner frequency points. Repeat this process until the envelope values for all frequency points are output.
[0055] It should be added that, in Figure 3A and Figure 3B In the application scenario shown, the frequency difference between two adjacent frequency points is 1.
[0056] Step S102: According to the preset frequency selection strategy, select multiple stationary frequency points sequentially between the start frequency point and the end frequency point of the spectrum envelope to obtain a stationary frequency point sequence.
[0057] In this embodiment, a corresponding frequency selection strategy can be preset. After obtaining the spectrum envelope, multiple stationary frequencies can be selected sequentially between the start and end frequencies of the spectrum envelope according to the preset frequency selection strategy to obtain a stationary frequency sequence.
[0058] For example, in Figure 2 In the application scenarios shown, frequency points The starting frequency point, frequency point The cutoff frequency. At the frequency point and frequency Nine stationary frequency points were selected sequentially, and the resulting stationary frequency point sequence is as follows: It is understandable that the order of frequencies in the stationary frequency sequence is related to the frequency selection strategy.
[0059] In one possible implementation, multiple frequency selection strategies can be pre-set. During use, a frequency selection strategy is selected from these strategies as needed to achieve more flexible spectrum control. Specifically, among the pre-set multiple frequency selection strategies, a target frequency selection strategy is determined; based on the target frequency selection strategy, multiple stationary frequencies are sequentially selected between the start and end frequencies of the spectrum envelope to obtain a stationary frequency sequence; wherein, the multiple frequency selection strategies include at least two of pseudo-random pattern frequency hopping, fixed pattern frequency hopping, adaptive pattern frequency hopping, and chaotic pattern frequency hopping.
[0060] Step S103: Based on the total number of dwelling periods and the spectral envelope, determine the dwelling period of each dwelling frequency in the dwelling frequency sequence to obtain a frequency hopping pattern composed of the dwelling frequency sequence and dwelling periods.
[0061] In this embodiment of the application, since the envelope value corresponding to a frequency point can represent the time proportion of that frequency point, after obtaining the spectrum envelope, the dwell period of each dwell frequency point in the dwell frequency point sequence can be determined according to the total number of dwell periods and the spectrum envelope.
[0062] Specifically, based on the spectral envelope, the envelope value of each stationary frequency in the stationary frequency sequence is determined; the stationary period of each stationary frequency is determined by multiplying the total number of stationary periods by the envelope value of each stationary frequency. For example, let the total number of stationary periods be... Frequency residing The corresponding envelope value is Then the stationary frequency point The corresponding period of stay is .
[0063] It should be noted that in practical applications, the selection of the dwell frequency and the calculation of the dwell period can be performed simultaneously. Specifically, after selecting a dwell frequency, the dwell period corresponding to that frequency can be calculated immediately. In other words, it is not necessary to wait for all dwell frequencies to be selected before starting to calculate the dwell period. Understandably, this data processing method can improve computational efficiency.
[0064] In some application scenarios, the dwell period corresponding to each dwell frequency point needs to be an integer value. It's understandable that the dwell period calculated by multiplying the total number of dwell periods by the envelope value of each dwell frequency point may contain a decimal part. Therefore, after obtaining the product of the total number of dwell periods and the envelope value of each dwell frequency point, it is necessary to round it down. Furthermore, the remainder after rounding down can be used as a residual value and accumulated to the next dwell period to ensure that the accumulated dwell period value corresponding to all dwell frequencies equals the total number of dwell periods.
[0065] See Figure 4 This is a schematic flowchart illustrating a method for calculating the dwell time provided in an embodiment of this application. Figure 4 As shown, it mainly includes the following steps.
[0066] Step S401: Determine the initial value of the dwell time of the current dwell frequency based on the product of the total number of dwell times and the envelope value of the current dwell frequency.
[0067] For example, let the total number of stay periods be Current frequency The corresponding envelope value is The total number of stay periods will then be... With current frequency envelope value Multiply to obtain the current station frequency. initial value of the residence period .
[0068] Step S402: If the current dwell frequency is the first dwell frequency, then use the initial value of the dwell period of the current dwell frequency as the accumulated value of the dwell period of the current dwell frequency.
[0069] It is understandable that if the current stationing frequency is the first stationing frequency, then there is no previous stationing frequency. Therefore, the initial value of the stationing period of the current stationing frequency can be directly used as the accumulated value of the stationing period of the current stationing frequency.
[0070] For example, let For the current station frequency The cumulative value of the residence period, if the current residence frequency If it is the first stationary frequency, then the current stationary frequency... Cumulative value of residence period .
[0071] Step S403: If the current dwell frequency is not the first dwell frequency, then add the initial dwell period value of the current dwell frequency to the residual value of the previous dwell frequency to obtain the accumulated dwell period value of the current dwell frequency.
[0072] It is understandable that if the current stationing frequency is not the first stationing frequency, then the current stationing frequency has a previous stationing frequency, that is, there is a residual value. Therefore, it is necessary to add the initial value of the stationing period of the current stationing frequency to the residual value of the previous stationing frequency to obtain the accumulated value of the stationing period of the current stationing frequency.
[0073] For example, let If the residual value is the previous dwell frequency, then if the current dwell frequency is... If it is not the first station to stay, then the current station to stay. Cumulative value of residence period .
[0074] Step S404: Round down the accumulated residence period value of the current residence frequency point to obtain the residence period and residual value of the current residence frequency point.
[0075] Specifically, the accumulated residence period value of the current residence frequency point is rounded down to the nearest integer, and the integer part is taken as the residence period of the current residence frequency point, while the remainder part is taken as the residual value.
[0076] For example, if the current stationary frequency point Cumulative value of residence period If the integer part is 12 and the remainder is 0.8, then the current stationary frequency is determined. The dwell period is 12, and the residual value is 0.8. It can be understood that the residual value of 0.8 is used to calculate the dwell period of the next dwell frequency point of the accumulated value.
[0077] In one possible implementation, to avoid the signal quality being affected by excessively short dwell time at a frequency point, a minimum dwell period can be set. The rounding operation is only performed when the accumulated dwell period value is greater than or equal to the minimum dwell period value; otherwise, all accumulated dwell period values are added as residual values to the dwell period of the next dwell frequency point.
[0078] Specifically, if the accumulated residence period value of the current residence frequency point is greater than or equal to the minimum residence period value, the accumulated residence period value of the current residence frequency point is rounded down to obtain the residence period and residual value of the current residence frequency point; if the accumulated residence period value of the current residence frequency point is less than the minimum residence period value, the accumulated residence period value of the current residence frequency point is used as the residual value.
[0079] For example, suppose the minimum dwell time is 3. If the current dwell frequency is... The cumulative dwell time is 12.8, and the current dwell frequency is... If the cumulative dwell time value of 12.8 is greater than the minimum dwell time value of 3, then the current dwell frequency will be... The current residence frequency is determined by rounding down the accumulated residence period value. The dwell time is 12, and the residual value is 0.8. If the current dwell frequency... The cumulative dwell time is 2.5, and the current dwell frequency is... If the cumulative dwell time value of 2.5 is less than the minimum dwell time value of 3, then the current dwell frequency will be directly adjusted. The cumulative value of the residence period, 2.5, is used as the current residence frequency. The residual value.
[0080] It should be noted that those skilled in the art can make adaptive adjustments to the minimum residence period according to actual needs, and the embodiments of this application do not impose specific limitations on this.
[0081] See Figure 5 This is a schematic diagram of the circuit structure of a dwell frequency selection module and a dwell period determination module provided in an embodiment of this application. Figure 5 As shown, the residing frequency selection module includes a third selection unit 201. The third selection unit 201 can select the starting frequency of the spectrum envelope based on the input frequency selection strategy. and cutoff frequency The frequency points for stationing are selected sequentially.
[0082] The dwell period determination module includes a first multiplier 301, a second adder 302, a second delay unit 303, and a judgment unit 304. If the dwell frequency selection module selects the current dwell frequency as... The current stationary frequency can be determined based on the spectral envelope. The corresponding envelope value is The first multiplier 301 input dwell time total number and current frequency of residence The corresponding envelope value is Multiply the two to obtain the current station frequency. initial value of the residence period And output it to the second adder 302. Assuming the current dwell frequency... If it is the first stationary frequency, then the current stationary frequency will be... initial value of the residence period As the current frequency station Cumulative value of residence period And output it to the judgment unit 304; if the current dwell frequency point If it is not the first station to stay on, then the current station will be used. initial value of the residence period The previous dwell frequency of the output of the second delay unit 303 residual value Accumulate the data to obtain the current stationary frequency. Cumulative value of residence period ,Right now The result is then output to the judgment unit 304. The judgment unit 304 determines the current stationary frequency. Cumulative value of residence period Minimum stay period as preset Compare, if Then Round down and keep the integer part As the current frequency station The dwell time is output to the third selection unit 201, and the fractional part is output. As the current frequency station The residual value is output to the second delay unit 303. Current stationary frequency. residual value After being delayed by the second delay unit 303, the output is sent to the second adder 302 to be combined with the next dwell frequency. The initial value of the dwell period is accumulated. The third selection unit 201 receives the current dwell frequency. stay period Then, output the array. According to the above processing method, the third selection unit 201 can sequentially output each dwell frequency and the dwell period corresponding to each dwell frequency.
[0083] It is understandable that after obtaining the dwell frequency sequence and the dwell period corresponding to each dwell frequency in the dwell frequency sequence, a frequency hopping pattern composed of the dwell frequency sequence and the dwell period corresponding to each dwell frequency can be determined. Based on this frequency hopping pattern, the transmission and reception of ultrasonic signals can be controlled.
[0084] See Figure 6 This is a flowchart illustrating another method for spectrum control of ultrasonic signals provided in an embodiment of this application. Figure 6As shown in Figure 1, the embodiments of this application further include the following steps.
[0085] Step S601: Input the signal corresponding to the frequency hopping pattern into the transmission control module to control the transmission of the ultrasonic signal; Step S602: Input the signal corresponding to the frequency hopping pattern into the receiving control module, calculate the signal correlation coefficient corresponding to the frequency hopping pattern, and use the signal correlation coefficient to characterize the reliability of the signal.
[0086] In this embodiment, the signals corresponding to the frequency hopping pattern are input into the transmit control module and the receive control module respectively, which can realize the reuse of the frequency hopping pattern and avoid increasing hardware overhead by inputting the transmit control module and the receive control module to calculate the frequency hopping pattern separately.
[0087] See Figure 7 This is a schematic diagram of the circuit structure of a transmit control module and a receive control module provided in an embodiment of this application. Figure 7 As shown, the transmission control module includes a transmission control unit 401. After receiving the signal corresponding to the frequency hopping pattern, the transmission control unit 401 can perform signal encoding, modulation, and other processing, and then output the ultrasonic signal Tx_seq for transmission.
[0088] The receiving control module includes a subtractor 501, a second multiplier 502, a third adder 503, a third delay unit 504, and a fourth selection unit 505. The subtractor 501 receives the signal corresponding to the frequency hopping pattern. After subtracting the local oscillation frequency f_c, the difference frequency signal df_m is obtained, and then output to the second multiplier 502. The second multiplier 502 multiplies the preset sampling interval dTs with the difference frequency signal df_m to obtain the current dwell frequency. Corresponding instantaneous phase difference The signal is then output to the third adder 503, which, through the third delay unit 504, sequentially accumulates the instantaneous phase difference corresponding to each dwell frequency point to obtain the phase of the signal corresponding to the frequency hopping pattern. The signal is then output to the fourth selection unit 505. The fourth selection unit 505 can determine the phase of the signal corresponding to the frequency hopping pattern by looking up a table. The corresponding real value of the signal correlation coefficient and imaginary values And then based on real values and imaginary values The signal correlation coefficient corresponding to the frequency hopping pattern can be determined. .in, .
[0089] The table below shows the signal correlation coefficients in the receiving control module under different pulse period conditions. The theoretical range of the signal correlation coefficients is 0 to 1.
[0090] As shown in the table above, under different pulse period conditions, the receiving control module provided in the embodiments of this application can generate signal correlation coefficients with good approximation characteristics.
[0091] See Figure 8 This is a schematic diagram comparing the designed and generated values of a spectrum provided in an embodiment of this application. See also... Figure 9 This is a signal spectrum of an actual output provided in an embodiment of this application. For example... Figure 8 and combined Figure 9 As shown in the embodiments of this application, a signal with a corresponding spectral envelope shape can be generated for pre-stored spectral envelope parameters.
[0092] Corresponding to the above embodiments, this application also provides a spectrum control circuit for ultrasonic signals.
[0093] See Figure 10 The following is a structural block diagram of an ultrasonic signal spectrum control circuit provided in an embodiment of this application. Figure 10 As shown, the spectrum control circuit 1000 mainly includes the following modules.
[0094] The spectrum envelope recovery module 1100 is used to generate a spectrum envelope corresponding to the spectrum envelope parameters according to the spectrum envelope parameters. The spectrum envelope parameters include the rate of change of envelope values of multiple frequency bands, the number of frequency points in each frequency band, and the envelope value of a reference frequency point. The dwell frequency selection module 1200 is used to select multiple dwell frequency points sequentially between the start frequency point and the end frequency point of the spectrum envelope according to a preset frequency selection strategy, so as to obtain a dwell frequency point sequence. The dwell period determination module 1300 is used to determine the dwell period of each dwell frequency point in the dwell frequency point sequence based on the total number of dwell periods and the spectral envelope, and to obtain a frequency hopping pattern composed of the dwell frequency point sequence and the dwell period.
[0095] It should be noted that the specific details of the embodiments of this application can be found in the description above, and will not be repeated here for the sake of brevity.
[0096] Corresponding to the above embodiments, this application also provides an integrated circuit chip, which includes the spectrum control circuit described above.
[0097] It should be noted that the specific details of the embodiments of this application can be found in the description above, and will not be repeated here for the sake of brevity.
[0098] Corresponding to the above embodiments, this application also provides an ultrasonic detection system, which includes an ultrasonic sensor and the spectrum control circuit or integrated circuit chip described above. The spectrum control circuit or integrated circuit chip is electrically connected to the ultrasonic sensor.
[0099] It should be noted that the specific details of the embodiments of this application can be found in the description above, and will not be repeated here for the sake of brevity.
[0100] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, the simultaneous existence of A and B, or the existence of B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects have an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0101] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0102] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0103] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0104] The above description is merely a specific embodiment of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. The protection scope of this application should be determined by the protection scope of the claims.
Claims
1. A method of spectral control of an ultrasonic signal, characterized in that, The method comprises the following steps: generating a spectrum envelope corresponding to the spectrum envelope parameter according to the spectrum envelope parameter, the spectrum envelope parameter comprising envelope value change rates of a plurality of frequency bands, a number of frequency points in each of the frequency bands, and an envelope value of a reference frequency point; selecting a plurality of residence frequency points between a starting frequency point and an ending frequency point of the spectrum envelope according to a preset frequency point selection strategy to obtain a residence frequency point sequence; determining a residence period of each of the residence frequency points in the residence frequency point sequence according to a total number of residence periods and the spectrum envelope, and obtaining a frequency hopping pattern composed of the residence frequency point sequence and the residence period.
2. The method of claim 1, wherein, The spectrum envelope parameter is a compressed spectrum envelope parameter, and the compressed spectrum envelope parameter is obtained by merging adjacent frequency bands with similar envelope value change rates in original spectrum envelope parameters.
3. The method of claim 1, wherein, The method comprises the following steps: determining spectrum envelope parameters corresponding to a target spectrum envelope waveform according to identification information corresponding to the target spectrum envelope waveform; generating a spectrum envelope corresponding to the spectrum envelope parameters according to the spectrum envelope parameters corresponding to the target spectrum envelope waveform.
4. The method of claim 1, wherein, The method comprises the following steps: determining an envelope value difference between the reference frequency point and any frequency point in the spectrum envelope parameter according to a frequency difference between the reference frequency point and the any frequency point and an envelope value change rate between the reference frequency point and the any frequency point; determining an envelope value of the any frequency point according to an envelope value of the reference frequency point and the envelope value difference.
5. The method of claim 1, wherein, The reference frequency point is the starting frequency point or the ending frequency point of the spectrum envelope.
6. The method of claim 1, wherein, The method comprises the following steps: determining a target frequency point selection strategy from a plurality of preset frequency point selection strategies; selecting a plurality of residence frequency points between a starting frequency point and an ending frequency point of the spectrum envelope according to the target frequency point selection strategy to obtain a residence frequency point sequence; wherein the plurality of frequency point selection strategies comprise at least two of a pseudo-random pattern frequency hopping, a fixed pattern frequency hopping, an adaptive pattern frequency hopping, and a chaotic pattern frequency hopping.
7. The method of claim 1, wherein, The method comprises the following steps: determining an envelope value of each of the residence frequency points in the residence frequency point sequence according to the spectrum envelope; determining a residence period of each of the residence frequency points according to a product of the total number of residence periods and the envelope value of each of the residence frequency points.
8. The method of claim 7, wherein, The method comprises the following steps: determining a residence period initial value of the current residence frequency point according to a product of the total number of residence periods and an envelope value of the current residence frequency point; If the current camp-on frequency point is the first camp-on frequency point, a camp-on period initial value of the current camp-on frequency point is taken as a camp-on period accumulation value of the current camp-on frequency point; If the current camp-on frequency point is not the first camp-on frequency point, a camp-on period initial value of the current camp-on frequency point is accumulated with a residual value of a previous camp-on frequency point to obtain a camp-on period accumulation value of the current camp-on frequency point; The camp-on period accumulation value of the current camp-on frequency point is taken as an integer to obtain a camp-on period and a residual value of the current camp-on frequency point; The above steps are sequentially performed on each camp-on frequency point until camp-on periods of all camp-on frequency points are obtained.
9. The method of claim 8, wherein, The camp-on period accumulation value of the current camp-on frequency point is taken as an integer to obtain a camp-on period and a residual value of the current camp-on frequency point, including: If the camp-on period accumulation value of the current camp-on frequency point is greater than or equal to a camp-on period minimum value, the camp-on period accumulation value of the current camp-on frequency point is taken as an integer to obtain a camp-on period and a residual value of the current camp-on frequency point; If the camp-on period accumulation value of the current camp-on frequency point is less than the camp-on period minimum value, the camp-on period accumulation value of the current camp-on frequency point is taken as a residual value.
10. The method of claim 1, wherein, After the frequency hopping pattern composed of the camp-on frequency point sequence and the camp-on period is obtained, further comprising: inputting a signal corresponding to the frequency hopping pattern into a transmission control module to control transmission of an ultrasonic signal; inputting the signal corresponding to the frequency hopping pattern into a receiving control module to calculate a signal correlation coefficient corresponding to the frequency hopping pattern, the signal correlation coefficient being used to represent reliability of the signal.
11. The method of claim 10, wherein, The signal corresponding to the frequency hopping pattern is inputted into the receiving control module to calculate the signal correlation coefficient corresponding to the frequency hopping pattern, including: the signal corresponding to the frequency hopping pattern is inputted into the receiving control module and subtracted from a local oscillation frequency to obtain a difference frequency signal; the difference frequency signal is sampled according to a preset sampling interval to obtain an instantaneous phase difference corresponding to each camp-on frequency point; all the instantaneous phase differences corresponding to the camp-on frequency points are accumulated to obtain a phase of the signal corresponding to the frequency hopping pattern; the phase of the signal corresponding to the frequency hopping pattern is used to determine the signal correlation coefficient corresponding to the frequency hopping pattern.
12. A spectrum control circuit for an ultrasonic signal, characterized by including: a spectrum envelope recovery module configured to generate a spectrum envelope corresponding to a spectrum envelope parameter according to the spectrum envelope parameter, the spectrum envelope parameter including an envelope value change rate of a plurality of frequency bands, a frequency point number in each of the frequency bands, and an envelope value of a reference frequency point; a camp-on frequency point selection module configured to sequentially select a plurality of camp-on frequency points between a start frequency point and an end frequency point of the spectrum envelope according to a preset frequency point selection strategy to obtain a camp-on frequency point sequence; a camp-on period determination module configured to determine a camp-on period of each of the camp-on frequency points in the camp-on frequency point sequence according to a total number of camp-on periods and the spectrum envelope to obtain a frequency hopping pattern composed of the camp-on frequency point sequence and the camp-on period.
13. An integrated circuit chip, characterized by including: the spectrum control circuit of claim 12.
14. An ultrasonic detection system, characterized in that including: an ultrasonic sensor; The spectrum control circuit of claim 12 or the integrated circuit chip of claim 13, in electrical connection with the ultrasonic sensor.