Sweep frequency signal generation method and device, equipment and storage medium
By setting the parameter interface in the ultrasonic testing equipment to obtain the sweep frequency parameter set, generating and transmitting the sweep frequency signal, the problem of the fixed sweep frequency signal generation process in the prior art is solved, thus expanding the application scope.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-15
- Publication Date
- 2026-04-10
AI Technical Summary
The frequency sweep signal generated by existing ultrasonic testing equipment follows a fixed process, resulting in a limited application range and preventing users from adjusting it according to their actual needs.
The sweep frequency parameter set, including pulse frequency parameters, current modulation target parameters, and duty cycle modulation target parameters, is obtained through the parameter setting interface. The target pulse sequence is generated, and current modulation and duty cycle modulation processing are performed. The sweep frequency signal is generated by combining the encoding method.
This expands the application range of ultrasonic testing equipment, allowing users to adjust the sweep frequency signal generation process through the parameter setting interface to meet different application needs.
Smart Images

Figure CN121820147A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of ultrasonic sweep frequency technology, and in particular to a sweep frequency signal generation method, apparatus, device and storage medium. Background Technology
[0002] A swept-frequency signal is an ultrasonic signal whose frequency changes continuously over time. Its core characteristic is that the frequency is not fixed but rather scans periodically or non-periodically within a specific frequency band according to a preset pattern. Sweeped-frequency signals are widely used in ultrasonic ranging, liquid level detection, flow rate detection, non-destructive testing, structural health monitoring, acoustic communication, and smart sensors.
[0003] In ultrasonic testing equipment of related technologies, the generation process of the sweep frequency signal is usually fixed, which results in a limited range of applications and users cannot adjust the generation process of the sweep frequency signal according to actual needs. Summary of the Invention
[0004] This application aims to address at least one of the technical problems existing in the prior art. To this end, this application proposes a method, apparatus, device, and storage medium for generating a swept frequency signal, which allows for parameter settings through a parameter setting interface, thereby changing the generation process of the swept frequency signal, and has a wide range of applications.
[0005] The sweep frequency signal generation method according to the first aspect of this application is applied to an ultrasonic testing device, the ultrasonic testing device including an ultrasonic transmitting module and a signal generation module; the signal generation module is provided with a parameter setting interface. The method includes: In response to a target operation command for the parameter setting interface, a frequency sweep parameter set is obtained based on the target operation command; the frequency sweep parameter set includes pulse frequency parameters, current modulation target parameters, and duty cycle modulation target parameters. Based on the pulse frequency parameters, a target pulse sequence is generated; wherein, the target pulse sequence includes multiple frequency values; Based on the current modulation target parameters, the target current modulation method is determined, and current modulation processing is performed based on the target current modulation method to obtain the target current corresponding to each frequency value. Based on the duty cycle modulation target parameters, the target duty cycle modulation method is determined, and duty cycle modulation processing is performed based on the target duty cycle modulation method to obtain the target duty cycle corresponding to each frequency value; The pulse duration of each frequency value in the target pulse sequence is calculated based on the clock cycle of the ultrasonic testing equipment. Based on a preset encoding method, the target current, the target duty cycle, and the pulse duration corresponding to the frequency values of the target pulse sequence are encoded to obtain a target encoded sequence corresponding to each frequency value; The signal generation module is controlled to send the target encoding sequence and the target pulse sequence to the ultrasonic transmitting module, so that the ultrasonic transmitting module generates and transmits a sweep frequency signal based on the target encoding sequence and the target pulse sequence.
[0006] The sweep frequency signal generation method according to the embodiments of this application has at least the following beneficial effects: When the method of this application is executed, the user operates on the parameter setting interface to generate a target operation command, and obtains a sweep frequency parameter set including pulse frequency parameters, current modulation target parameters, and duty cycle modulation target parameters based on the target operation command. A target pulse sequence is generated based on the pulse frequency parameters; current modulation processing is performed based on the current modulation target parameters to obtain the corresponding target current; duty cycle modulation processing is performed based on the duty cycle modulation target parameters to obtain the corresponding target duty cycle; the pulse duration of each frequency value in the target pulse sequence is calculated; based on a preset encoding method, the target current, target duty cycle, and pulse duration corresponding to the frequency values of the target pulse sequence are encoded to obtain a target encoded sequence corresponding to each frequency value. The control signal generation module sends the target encoded sequence and the target pulse sequence to the ultrasonic transmitting module, so that the ultrasonic transmitting module generates and transmits a sweep frequency signal based on the target encoded sequence and the target pulse sequence. In this way, the ultrasonic transmitting module can determine the current, duty cycle, and duration of the sweep signal corresponding to each frequency value based on the target encoding sequence, thereby generating and transmitting the sweep signal. Furthermore, the user can operate the parameter setting interface to generate new target operation commands, thereby changing the generation process of the sweep signal, making the ultrasonic testing equipment of this application more widely applicable.
[0007] According to some embodiments of this application, the pulse frequency parameter includes a sweep frequency mode target parameter, the pulse quantity parameter, and the sequence offset parameter; The step of generating the target pulse sequence based on the pulse frequency parameter includes: The target frequency sweeping mode is determined based on the target parameters of the frequency sweeping mode; Based on the target frequency sweep mode and the pulse quantity parameter, an initial pulse sequence is generated; The target pulse sequence is obtained by offsetting each element of the initial pulse sequence based on the sequence offset parameter.
[0008] According to some embodiments of this application, the step of encoding the target current, the target duty cycle, and the pulse duration corresponding to the frequency values of the target pulse sequence based on a preset encoding method to obtain a target encoded sequence corresponding to each frequency value includes: The target current, target duty cycle, and pulse duration corresponding to the frequency value of the target pulse sequence are converted into preset base data respectively. The preset base data are then concatenated according to a preset arrangement to obtain the initial encoding sequence corresponding to each frequency value. Preset trigger data is appended to the end of the initial encoding sequence to obtain the target encoding sequence; wherein, the trigger data is used to trigger the ultrasonic transmitting module to generate a frequency sweep signal.
[0009] According to some embodiments of this application, after controlling the signal generation module to send the target encoded sequence and the target pulse sequence to the ultrasonic transmitting module, the method further includes: The ultrasonic transmitting module is controlled to receive the target encoded sequence and the target pulse sequence; The ultrasonic transmitting module is controlled to decode the target encoded sequence based on the encoding method to obtain the target current, the target duty cycle, and the pulse duration corresponding to each frequency value of the target pulse sequence; Based on the target pulse sequence and the target current, target duty cycle, and pulse duration corresponding to the frequency value of the target pulse sequence, the ultrasonic transmitting module is controlled to transmit ultrasonic signals.
[0010] According to some embodiments of this application, the parameter setting interface includes a frequency sweep basic configuration interface; The step of responding to a target operation command for the signal generation module and obtaining a frequency sweep parameter set based on the target operation command includes: The basic configuration interface for frequency sweeping displays multiple first mode identifiers, each of which corresponds to a frequency sweeping mode. In response to a first selection operation instruction for the first mode identifier, a target first mode identifier is determined, and a sweep mode target parameter is obtained based on the first mode identifier. The sweep mode target parameter is used to indicate the target sweep mode corresponding to the target first mode identifier.
[0011] According to some embodiments of this application, the parameter setting interface includes a current modulation mode configuration interface; The step of responding to a target operation command for the signal generation module and obtaining a frequency sweep parameter set based on the target operation command further includes: The current modulation method configuration interface displays multiple second mode identifiers, and each second mode identifier corresponds to a current modulation method. In response to a second selection operation command for the second mode identifier, a target second mode identifier is determined, and the current modulation target parameter is obtained based on the second mode identifier. The current modulation target parameter is used to indicate the target current modulation mode corresponding to the target second mode identifier.
[0012] According to some embodiments of this application, the parameter setting interface includes a duty cycle configuration interface; The step of responding to a target operation command for the signal generation module and obtaining a frequency sweep parameter set based on the target operation command further includes: The duty cycle configuration interface displays multiple third mode identifiers, each of which corresponds to a duty cycle modulation mode. In response to a third selection operation command for the third mode identifier, a target third mode identifier is determined, and a duty cycle modulation target parameter is obtained based on the third mode identifier. The duty cycle modulation target parameter is used to indicate the target duty cycle modulation mode corresponding to the target third mode identifier.
[0013] A second aspect of this application provides a sweep frequency signal generation device for use in an ultrasonic testing device. The ultrasonic testing device includes an ultrasonic transmitting module and a signal generation module; the signal generation module is provided with a parameter setting interface. The device includes: The parameter determination unit is used to respond to a target operation command for the parameter setting interface and obtain a frequency sweep parameter set based on the target operation command; the frequency sweep parameter set includes pulse frequency parameters, current modulation target parameters, and duty cycle modulation target parameters. A pulse generation unit is used to generate a target pulse sequence based on the pulse frequency parameters; wherein the target pulse sequence includes multiple frequency values; A current modulation unit is used to determine a target current modulation method based on the current modulation target parameters, and to perform current modulation processing based on the target current modulation method to obtain the target current corresponding to each frequency value. The duty cycle modulation unit is used to determine the target duty cycle modulation mode based on the duty cycle modulation target parameters, and to perform duty cycle modulation processing based on the target duty cycle modulation mode to obtain the target duty cycle corresponding to each frequency value. A time calculation unit is used to calculate the pulse duration of each frequency value in the target pulse sequence based on the clock cycle of the ultrasonic testing equipment. The encoding unit is used to encode the target current, the target duty cycle, and the pulse duration corresponding to the frequency values of the target pulse sequence based on a preset encoding method, so as to obtain a target encoded sequence corresponding to each frequency value; The transmitting unit is used to control the signal generation module to send the target encoding sequence and the target pulse sequence to the ultrasonic transmitting module, so that the ultrasonic transmitting module generates and transmits a sweep frequency signal based on the target encoding sequence and the target pulse sequence.
[0014] A third aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the frequency sweep signal generation method described in any one of the first aspects of the embodiment.
[0015] A fourth aspect of this application provides a computer-readable storage medium storing a computer program, characterized in that, when executed by a processor, the computer program implements the frequency sweep signal generation method described in any one of the first aspects of the embodiment.
[0016] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0017] The present application will be further described below with reference to the accompanying drawings and embodiments, wherein: Figure 1 This is a flowchart illustrating the steps of the frequency sweep signal generation method according to an embodiment of this application; Figure 2 This is a schematic diagram of the basic configuration interface for frequency sweeping in an embodiment of this application; Figure 3 A schematic diagram of the current modulation method configuration interface according to an embodiment of this application; Figure 4 This is a schematic diagram of the duty cycle configuration interface according to an embodiment of this application; Figure 5 This is a functional unit diagram of the sweep frequency signal generation device according to an embodiment of this application; Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0018] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0019] In the description of this application, it should be understood that the orientation descriptions, such as up, down, front, back, left, right, etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0020] In the description of this application, "several" means one or more, "multiple" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.
[0021] In the description of this application, unless otherwise expressly defined, terms such as "setup," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this application in conjunction with the specific content of the technical solution.
[0022] In the description of this application, the terms "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0023] It should be noted that in all specific embodiments of this application, when processing data related to user identity or characteristics, such as user information, user behavior data, user historical data, and user location information, user permission or consent is obtained first. Furthermore, the collection, use, and processing of this data comply with relevant laws, regulations, and standards. In addition, when embodiments of this application require access to sensitive personal information of users, separate permission or consent from the user is obtained through pop-ups or redirection to confirmation pages. Only after obtaining the user's separate permission or consent is the necessary user-related data required for the proper functioning of these embodiments acquired.
[0024] The first aspect of this application provides a method for generating a swept frequency signal. This method can be applied to a terminal or a server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, etc.; the server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application implementing the swept frequency signal generation method, but is not limited to the above forms.
[0025] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0026] The sweep frequency signal generation method of this application embodiment is specifically applied to an ultrasonic testing device, which includes an ultrasonic transmitting module and a signal generation module. (Refer to...) Figure 1 , Figure 1 This is a schematic flowchart illustrating the steps of a frequency sweep signal generation method according to an embodiment of this application. The frequency sweep signal generation method according to an embodiment of this application may include, but is not limited to, steps S110 to S170.
[0027] Step S110: In response to the target operation command for the parameter setting interface, obtain the sweep frequency parameter set based on the target operation command; the sweep frequency parameter set includes pulse frequency parameters, current modulation target parameters, and duty cycle modulation target parameters. Step S120: Generate a target pulse sequence based on pulse frequency parameters; wherein, the target pulse sequence includes multiple frequency values; Step S130: Based on the current modulation target parameters, determine the target current modulation method, perform current modulation processing based on the target current modulation method, and obtain the target current corresponding to each frequency value; Step S140: Based on the duty cycle modulation target parameters, determine the target duty cycle modulation method, perform duty cycle modulation processing based on the target duty cycle modulation method, and obtain the target duty cycle corresponding to each frequency value; Step S150: Calculate the pulse duration of each frequency value in the target pulse sequence based on the clock cycle of the ultrasonic testing equipment; Step S160: Based on a preset encoding method, the target current, target duty cycle, and pulse duration corresponding to the frequency values of the target pulse sequence are encoded to obtain the target encoded sequence corresponding to each frequency value; In step S170, the control signal generation module sends the target encoding sequence and the target pulse sequence to the ultrasonic transmitting module, so that the ultrasonic transmitting module generates and transmits a sweep frequency signal based on the target encoding sequence and the target pulse sequence.
[0028] The method of this embodiment, through steps S110 to S170, involves the user operating the parameter setting interface to generate a target operation command. Based on the target operation command, a sweep frequency parameter set including pulse frequency parameters, current modulation target parameters, and duty cycle modulation target parameters is obtained. A target pulse sequence is generated based on the pulse frequency parameters; current modulation processing is performed based on the current modulation target parameters to obtain the corresponding target current; duty cycle modulation processing is performed based on the duty cycle modulation target parameters to obtain the corresponding target duty cycle; the pulse duration of each frequency value in the target pulse sequence is calculated; and the target current, target duty cycle, and pulse duration corresponding to the frequency values of the target pulse sequence are encoded based on a preset encoding method to obtain a target encoded sequence corresponding to each frequency value. The control signal generation module sends the target encoded sequence and the target pulse sequence to the ultrasonic transmitting module, enabling the ultrasonic transmitting module to generate and transmit a sweep frequency signal based on the target encoded sequence and the target pulse sequence. In this way, the ultrasonic transmitting module can determine the current, duty cycle, and duration of the sweep signal corresponding to each frequency value based on the target encoding sequence, thereby generating and transmitting the sweep signal. Furthermore, the user can operate the parameter setting interface to generate new target operation commands, thereby changing the generation process of the sweep signal, making the ultrasonic testing equipment of this application more widely applicable.
[0029] It is worth noting that the signal generation module includes a display screen and a data processing unit. The display screen is connected to the data processing unit and is a touch screen. The display screen shows a parameter setting interface, and the user can set various parameters in the parameter setting interface by operating the touch screen, thereby generating the target operation command. The data processing unit includes a DMA unit. After the target encoding sequence is generated in step S160, the target encoding sequence and the target pulse sequence are transferred to the register of the ultrasonic transmitting module through the DMA unit.
[0030] It is worth noting that the ultrasonic transmitting module includes a DAC converter, a processor, and a transducer. The processor decodes the target encoded sequence according to a preset encoding method to obtain the target current, target duty cycle, and pulse duration corresponding to each frequency value in the target pulse sequence. Then, based on the target current, target duty cycle, and pulse duration, the DAC converter drives the transducer to generate and transmit a swept frequency signal. The transducer is used to generate and transmit ultrasonic signals, i.e., swept frequency signals.
[0031] It should be noted that DMA stands for Direct Memory Access. It is a technology that allows internal computer peripherals (such as timers, ADCs, SPI, etc.) or another core to directly read and write data between memory and devices without the intervention of the central processing unit (CPU).
[0032] In some embodiments, the pulse frequency parameter includes a sweep mode target parameter, a pulse number parameter, and a sequence offset parameter; Step S120: Generate a target pulse sequence based on the pulse frequency parameters, including steps S121 to S123.
[0033] Step S121: Determine the target frequency sweeping mode based on the target parameters of the frequency sweeping mode; Step S122: Generate an initial pulse sequence based on the target sweep frequency mode and pulse quantity parameters; It is worth noting that the frequency sweep modes include linear frequency sweep mode, nonlinear frequency sweep mode, and FSK mode. Each of the linear, nonlinear, and FSK modes corresponds to a specific frequency sweep mode parameter. A preliminary correspondence is established between the linear, nonlinear, and FSK modes and their respective parameters. Therefore, after determining the target parameters for the frequency sweep mode, based on this preliminary correspondence, the frequency sweep mode corresponding to the parameter that matches the target parameters is selected as the target frequency sweep mode.
[0034] It is worth noting that the linear frequency sweep mode uses the first formula, which is: ; Where a is a preset constant, f0 is a preset starting frequency, f(x) is a frequency value, and x is the independent variable, where x is time. When the target frequency sweep mode is a linear frequency sweep mode, an initial pulse sequence including the pulse number parameter and its frequency values is generated based on the first formula and the pulse number parameter. It should be noted that after determining that the initial pulse sequence is generated by the first formula, the specific generation process of the initial pulse sequence can be implemented using algorithms in the prior art, and this application does not limit it in this regard.
[0035] It is worth noting that the nonlinear frequency sweep mode uses the second formula, which is: ; Where A and B are preset constants, f(x) is the frequency value, and x is the independent variable, where x is time. The seed frequency sequence is preset. When the target frequency sweep mode is a non-linear frequency sweep mode, an initial pulse sequence including the pulse number parameter frequency values is generated based on the second formula and the pulse number parameter. It should be noted that after determining that the initial pulse sequence is generated by the second formula, the specific generation process of the initial pulse sequence can be implemented using algorithms in the prior art, and this application does not limit it in this regard.
[0036] It is worth noting that the FSK mode uses a third formula, which is: ; in, Here, T is the switching period of the FSK mode, n is any positive integer, f(x) is the frequency value, and x is the independent variable, where x is time. When the target frequency sweep mode is FSK mode, an initial pulse sequence including the pulse number parameter and several frequency values is generated based on the third formula and the pulse number parameter. It should be noted that after determining that the initial pulse sequence is generated by the third formula, the specific generation process of the initial pulse sequence can be implemented using algorithms in the prior art, and this application does not limit it in this regard.
[0037] Step S123: Based on the sequence offset parameter, each element of the initial pulse sequence is offset to obtain the target pulse sequence.
[0038] It is worth noting that the offset is performed using the fourth formula, which is: ; Where g(x) is the frequency value after the offset, f(x) is the frequency value before the offset, and A is the offset value of f(x), that is, the value of the sequence offset parameter.
[0039] It is worth noting that, through the above steps S121 to S123, the target frequency sweep mode is first determined, and then an initial pulse sequence is generated based on the target frequency sweep mode, the start frequency parameter, the cutoff frequency parameter, and the number of pulses parameter. Then, each element of the initial pulse sequence is offset based on the sequence offset parameter to obtain the target pulse sequence.
[0040] In some embodiments, step S160 may include, but is not limited to, steps S161 and S162.
[0041] Step S161: Convert the target current, target duty cycle, and pulse duration corresponding to the frequency value of the target pulse sequence into preset base data respectively, and concatenate each preset base data according to a preset arrangement to obtain the initial encoding sequence corresponding to each frequency value. It is worth noting that the preset number system can be binary or hexadecimal, and this application does not make any specific limitation on it.
[0042] It should be noted that the encoding method records the order of the preset base data corresponding to the target current, target duty cycle, and pulse duration, and records the specific position of the preset base data corresponding to the target current, target duty cycle, and pulse duration in the initial encoding sequence.
[0043] Step S162: Preset trigger data is appended to the end of the initial encoding sequence to obtain the target encoding sequence; wherein, the trigger data is used to trigger the ultrasonic transmitting module to generate a frequency sweep signal.
[0044] It should be noted that the trigger data can be a preset value. When the ultrasonic transmitting module detects that the end of the target encoded sequence is a preset value, it generates and transmits a frequency sweep signal. When the ultrasonic transmitting module detects that the end of the target encoded sequence is not a preset value, it discards the target encoded sequence.
[0045] It is worth noting that the target encoding sequence is obtained through steps S161 and S162, so that the ultrasonic transmitting module can decode the target encoding sequence to obtain the target current, target duty cycle and pulse duration corresponding to the frequency value of the target pulse sequence, which facilitates the ultrasonic transmitting module to drive the transducer to generate and transmit the sweep frequency signal.
[0046] In some embodiments, after controlling the signal generation module to send the target encoding sequence and the target pulse sequence to the ultrasonic transmitting module, steps S210 to S230 are further included.
[0047] Step S210: Control the ultrasonic transmitting module to receive the target encoded sequence and the target pulse sequence; Step S220: Control the ultrasonic transmitting module to decode the target encoded sequence based on the encoding method to obtain the target current, target duty cycle, and pulse duration corresponding to each frequency value of the target pulse sequence; It is worth noting that, since the encoding method records the order of the preset base data corresponding to the target current, target duty cycle, and pulse duration, and records the specific position of the preset base data corresponding to the target current, target duty cycle, and pulse duration in the initial encoding sequence, the target encoding sequence can be decoded based on the encoding method to obtain the target current, target duty cycle, and pulse duration corresponding to each frequency value of the target pulse sequence.
[0048] Step S230: Based on the target pulse sequence and the target current, target duty cycle, and pulse duration corresponding to the frequency value of the target pulse sequence, control the ultrasonic transmitting module to transmit ultrasonic signals.
[0049] It is worth noting that through steps S210 to S230, the ultrasonic transmitting module acquires the target current, target duty cycle, and pulse duration corresponding to the frequency value of the target pulse sequence, so as to control the DAC module of the ultrasonic transmitting module to drive the transducer to emit ultrasonic signals. The specific driving process of the DAC module is not described in detail in this embodiment.
[0050] In some embodiments, the current modulation method includes five modes: a first current modulation method, a second current modulation method, a third current modulation method, a fourth current modulation method, and a fifth current modulation method. Each current modulation method corresponds to a current modulation parameter, and a second correspondence between the current modulation method and the current modulation parameter is established in advance. After obtaining the target current modulation parameter, based on the second correspondence, the current modulation method corresponding to the current modulation parameter that is the same as the target current modulation parameter is taken as the target current modulation method.
[0051] It is worth noting that the first current modulation method is a fixed method, which sets the target current to a preset value, and this preset value represents the current level.
[0052] The modulation formula for the second current modulation method is: ; Wherein, Ii represents the target current, which indicates the current level, and i represents the index of the frequency value in the target pulse sequence. For example, if the target pulse sequence includes 31 frequency values, then the target current for the first frequency value is I1=1, meaning the current of the sweep signal corresponding to the first frequency value is level 1. Similarly, if the target pulse sequence includes 31 frequency values, then the target current for the 20th frequency value is I20=20, meaning the current of the sweep signal corresponding to the 20th frequency value is level 20. It should be noted that the transducer's drive current in the ultrasonic transmitter module is divided into 31 levels. This application does not specifically limit the current value corresponding to each level; those skilled in the art can set it according to the actual situation.
[0053] The modulation formula for the third current modulation method is: ; Wherein, Ii represents the target current, which is used to indicate the current level, and i represents the index of the frequency value in the target pulse sequence. It should be noted that the transducer drive current in the ultrasonic transmitting module is divided into 31 levels. This application does not specify the current value corresponding to each level, and those skilled in the art can set it according to the actual situation.
[0054] The modulation formula for the fourth current modulation method is: ; Wherein, Ii represents the target current, which is used to indicate the current level, and i represents the index of the frequency value in the target pulse sequence. It should be noted that the transducer drive current in the ultrasonic transmitting module is divided into 31 levels. This application does not specify the current value corresponding to each level, and those skilled in the art can set it according to the actual situation.
[0055] The modulation formula for the fifth current modulation method is: ; Wherein, Ii represents the target current, which is used to indicate the current level, and i represents the index of the frequency value in the target pulse sequence. It should be noted that the transducer drive current in the ultrasonic transmitting module is divided into 31 levels. This application does not specify the current value corresponding to each level, and those skilled in the art can set it according to the actual situation.
[0056] In some embodiments, the duty cycle modulation scheme includes five modes: a first duty cycle modulation scheme, a second duty cycle modulation scheme, a third duty cycle modulation scheme, a fourth duty cycle modulation scheme, and a fifth duty cycle modulation scheme. Each duty cycle modulation scheme corresponds to a duty cycle modulation parameter, and a third correspondence between the duty cycle modulation scheme and the duty cycle modulation parameter is established in advance. After obtaining the target duty cycle modulation parameter, based on the third correspondence, the duty cycle modulation scheme corresponding to the duty cycle modulation parameter that is the same as the target duty cycle modulation parameter is selected as the target duty cycle modulation scheme.
[0057] It is worth noting that the first duty cycle modulation method is a fixed method, setting the target duty cycle to a preset value. For example, the preset value is D, where D is greater than or equal to 45% and less than or equal to 65%.
[0058] The formula for the second duty cycle modulation method is: ; Where f(x) is the duty cycle, x is the frequency value in the target pulse sequence, 2N is the number of elements in the target pulse sequence, and b and k are preset constants.
[0059] The formula for the third duty cycle modulation method is: ; Where f(x) is the duty cycle, x is the frequency value in the target pulse sequence, 2N is the number of elements in the target pulse sequence, and b and k are preset constants.
[0060] The formula for the fourth duty cycle modulation method is: ; Where f(x) is the duty cycle, x is the frequency value in the target pulse sequence, 2N is the number of elements in the target pulse sequence, and b and k are preset constants.
[0061] The formula for the fifth duty cycle modulation method is: ; Where f(x) is the duty cycle, x is the frequency value in the target pulse sequence, 2N is the number of elements in the target pulse sequence, and b and k are preset constants.
[0062] In some embodiments, the formula for calculating the pulse duration of the frequency value in the target pulse sequence is: ; ; Where Ti represents the pulse duration of the i-th frequency value in the target pulse sequence, and Fclk is the clock frequency of the ultrasonic transmitting module chip. The total period of the entire target pulse sequence is... Here, N represents the number of elements in the target pulse sequence.
[0063] In some embodiments, the equivalent number of sampling points is calculated using the following formula: ; ; ; Where Nsamp represents the equivalent sampling point count, Ti represents the pulse duration of the i-th frequency value in the target pulse sequence, Fclk is the clock frequency of the ultrasonic transmitting module chip, N is the number of elements in the target pulse sequence, and CLK is the total number of clock cycles. After calculating the equivalent sampling point count, the equivalent sampling point count is sent to the ultrasonic transmitting module. The equivalent sampling point count facilitates subsequent digital signal processing and echo analysis.
[0064] In some embodiments, the parameter setting interface includes a frequency sweep basic configuration interface, and the target operation instruction includes a first selection operation instruction. (See reference...) Figure 2 , Figure 2This is a schematic diagram of the basic configuration interface for frequency sweeping according to an embodiment of this application. In response to a target operation command for the signal generation module, a frequency sweeping parameter set is obtained based on the target operation command, including steps S310 and S320.
[0065] Step S310: Display multiple first mode identifiers on the frequency sweep basic configuration interface. Each first mode identifier corresponds to a frequency sweep mode. Step S320: In response to the first selection operation instruction for the first mode identifier, determine the selected target first mode identifier, and obtain the sweep frequency mode target parameter based on the first mode identifier. The sweep frequency mode target parameter is used to indicate the target sweep frequency mode corresponding to the target first mode identifier.
[0066] It is worth noting that users can operate the basic frequency sweep configuration interface via touchscreen or mouse. For example, clicking any of the first mode icons will trigger the first selection operation command. The first mode icons are divided into first mode icon 1, first mode icon 2, and first mode icon 3. The target frequency sweep mode parameter for first mode icon 1 is A1, for first mode icon 2 it is A2, and for first mode icon 3 it is A3. A1 indicates a linear frequency sweep mode; A2 indicates a non-linear frequency sweep mode; and A3 indicates an FSK mode.
[0067] In some embodiments, the parameter setting interface includes a current modulation mode configuration interface, and the target operation instruction includes a second selection operation instruction. (See reference...) Figure 3 , Figure 3 This is a schematic diagram of the current modulation method configuration interface according to an embodiment of this application.
[0068] In response to a target operation command for the signal generation module, a sweep frequency parameter set is obtained based on the target operation command, including steps S410 and S420.
[0069] Step S410: Multiple second mode identifiers are displayed on the current modulation mode configuration interface, and each second mode identifier corresponds to a current modulation mode. Step S420: In response to the second selection operation command for the second mode identifier, the selected target second mode identifier is determined, and the current modulation target parameter is obtained based on the second mode identifier. The current modulation target parameter is used to indicate the target current modulation mode corresponding to the target second mode identifier.
[0070] It is worth noting that users can operate the current modulation mode configuration interface via touchscreen or mouse. For example, clicking any of the second mode icons will trigger a second selection operation command. The second mode icons are divided into second mode icon 1, second mode icon 2, second mode icon 3, second mode icon 4, and second mode icon 5. The target current modulation parameter for second mode icon 1 is B1; for second mode icon 2, it is B2; for second mode icon 3, it is B3; for second mode icon 4, it is B4; and for second mode icon 5, it is B6. B1 indicates the first current modulation mode; B2 indicates the second current modulation mode; B3 indicates the third current modulation mode; B4 indicates the fourth current modulation mode; and B5 indicates the fifth current modulation mode.
[0071] In some embodiments, the parameter setting interface includes a duty cycle configuration interface; the target operation instruction includes a third selection operation instruction. (See also...) Figure 4 , Figure 4 This is a schematic diagram of the duty cycle configuration interface according to an embodiment of this application.
[0072] The step of responding to a target operation command for the signal generation module and obtaining a sweep frequency parameter set based on the target operation command further includes steps S510 to S520.
[0073] Step S510: Multiple third mode identifiers are displayed on the duty cycle configuration interface, and each third mode identifier corresponds to a duty cycle modulation mode. Step S520: In response to the third selection operation command for the third mode identifier, the selected target third mode identifier is determined, and the duty cycle modulation target parameter is obtained based on the third mode identifier. The duty cycle modulation target parameter is used to indicate the target duty cycle modulation mode corresponding to the target third mode identifier.
[0074] It is worth noting that users can operate the duty cycle configuration interface via touchscreen or mouse. For example, clicking any of the third mode icons will trigger a third selection operation command. The third mode icons are categorized as Third Mode Icon 1, Third Mode Icon 2, Third Mode Icon 3, Third Mode Icon 4, and Third Mode Icon 5. The duty cycle modulation target parameter for Third Mode Icon 1 is C1; for Third Mode Icon 2, it is C2; for Third Mode Icon 3, it is C3; for Third Mode Icon 4, it is C4; and for Third Mode Icon 5, it is C6. C1 indicates the first duty cycle modulation mode; C2 indicates the second duty cycle modulation mode; C3 indicates the third duty cycle modulation mode; C4 indicates the fourth duty cycle modulation mode; and C5 indicates the fifth duty cycle modulation mode.
[0075] A second aspect of this application provides a sweep frequency signal generation device applied to an ultrasonic testing equipment. The ultrasonic testing equipment includes an ultrasonic transmitting module and a signal generation module; the signal generation module is provided with a parameter setting interface; see reference... Figure 5 , Figure 5 This is a schematic diagram of the functional units of the sweep frequency signal generation device according to an embodiment of this application.
[0076] The frequency sweep signal generation device includes: The parameter determination unit 510 is used to respond to the target operation command for the parameter setting interface and obtain the sweep frequency parameter set based on the target operation command; the sweep frequency parameter set includes pulse frequency parameters, current modulation target parameters, and duty cycle modulation target parameters. The pulse generation unit 520 is used to generate a target pulse sequence based on pulse frequency parameters; wherein, the target pulse sequence includes multiple frequency values; The current modulation unit 530 is used to determine the target current modulation method based on the current modulation target parameters, perform current modulation processing based on the target current modulation method, and obtain the target current corresponding to each frequency value. The duty cycle modulation unit 540 is used to determine the target duty cycle modulation mode based on the duty cycle modulation target parameters, perform duty cycle modulation processing based on the target duty cycle modulation mode, and obtain the target duty cycle corresponding to each frequency value. The time calculation unit 550 is used to calculate the pulse duration of each frequency value in the target pulse sequence based on the clock cycle of the ultrasonic testing equipment. The encoding unit 560 is used to encode the target current, target duty cycle, and pulse duration corresponding to the frequency value of the target pulse sequence based on a preset encoding method, so as to obtain the target encoding sequence corresponding to each frequency value. The transmitting unit 570 is used to control the signal generation module to send the target encoding sequence and the target pulse sequence to the ultrasonic transmitting module, so that the ultrasonic transmitting module generates and transmits a sweep frequency signal based on the target encoding sequence and the target pulse sequence.
[0077] The sweep frequency signal generation device of this application embodiment is used to execute the sweep frequency signal generation method of the first aspect embodiment. During execution, the user operates the parameter setting interface to generate a target operation command. Based on the target operation command, a sweep frequency parameter set including pulse frequency parameters, current modulation target parameters, and duty cycle modulation target parameters is obtained. A target pulse sequence is generated based on the pulse frequency parameters; current modulation processing is performed based on the current modulation target parameters to obtain the corresponding target current; duty cycle modulation processing is performed based on the duty cycle modulation target parameters to obtain the corresponding target duty cycle; the pulse duration of each frequency value in the target pulse sequence is calculated; based on a preset encoding method, the target current, target duty cycle, and pulse duration corresponding to the frequency values of the target pulse sequence are encoded to obtain a target encoded sequence corresponding to each frequency value. The control signal generation module sends the target encoded sequence and the target pulse sequence to the ultrasonic transmitting module, so that the ultrasonic transmitting module generates and transmits a sweep frequency signal based on the target encoded sequence and the target pulse sequence. In this way, the ultrasonic transmitting module can determine the current, duty cycle, and duration of the sweep signal corresponding to each frequency value based on the target encoding sequence, thereby generating and transmitting the sweep signal. Furthermore, the user can operate the parameter setting interface to generate new target operation commands, thereby changing the generation process of the sweep signal, making the ultrasonic testing equipment of this application more widely applicable.
[0078] It should be noted that the specific implementation of the frequency sweep signal generation device is basically the same as the specific embodiment of the frequency sweep signal generation method described above, and will not be repeated here. Subject to meeting the requirements of the embodiments of this application, the frequency sweep signal generation device may also be equipped with other functional units to implement the frequency sweep signal generation method in the above embodiments.
[0079] A third aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the frequency sweep signal generation method of any one of the first aspects of the embodiment. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.
[0080] Reference Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device according to one embodiment. The electronic device includes: The processor 601 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application. The memory 602 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 602 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 602 and is called and executed by the processor 601 using the frequency sweep signal generation method of the embodiments of this application. The input / output interface 603 is used to implement information input and output; The communication interface 604 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 605 transmits information between various components of the device (e.g., processor 601, memory 602, input / output interface 603, and communication interface 604); The processor 601, memory 602, input / output interface 603, and communication interface 604 are connected to each other within the device via bus 605.
[0081] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the frequency sweep signal generation method of any one of the first aspects of the embodiment.
[0082] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0083] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0084] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.
[0085] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0086] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0087] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0088] It should be understood that in this application, "at least one (item)" means one or more, and "more than one" means two or more. "And / or" is used to describe the mapping relationship between the mapped objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following mapped objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0089] In the embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0090] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0091] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0092] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it 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 all or 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 multiple 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 of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0093] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.
Claims
1. A method for generating a swept frequency signal, characterized in that, This is applied to ultrasonic testing equipment, which includes an ultrasonic transmitting module and a signal generating module; the signal generating module is provided with a parameter setting interface. The method includes: In response to a target operation command for the parameter setting interface, a frequency sweep parameter set is obtained based on the target operation command; the frequency sweep parameter set includes pulse frequency parameters, current modulation target parameters, and duty cycle modulation target parameters. Based on the pulse frequency parameters, a target pulse sequence is generated; wherein, the target pulse sequence includes multiple frequency values; Based on the current modulation target parameters, the target current modulation method is determined, and current modulation processing is performed based on the target current modulation method to obtain the target current corresponding to each frequency value. Based on the duty cycle modulation target parameters, the target duty cycle modulation method is determined, and duty cycle modulation processing is performed based on the target duty cycle modulation method to obtain the target duty cycle corresponding to each frequency value; The pulse duration of each frequency value in the target pulse sequence is calculated based on the clock cycle of the ultrasonic testing equipment. Based on a preset encoding method, the target current, the target duty cycle, and the pulse duration corresponding to the frequency values of the target pulse sequence are encoded to obtain a target encoded sequence corresponding to each frequency value; The signal generation module is controlled to send the target encoding sequence and the target pulse sequence to the ultrasonic transmitting module, so that the ultrasonic transmitting module generates and transmits a sweep frequency signal based on the target encoding sequence and the target pulse sequence.
2. The frequency sweep signal generation method according to claim 1, characterized in that, The pulse frequency parameters include the sweep frequency mode target parameters, the pulse quantity parameters, and the sequence offset parameters; The step of generating the target pulse sequence based on the pulse frequency parameter includes: The target frequency sweeping mode is determined based on the target parameters of the frequency sweeping mode; Based on the target frequency sweep mode and the pulse quantity parameter, an initial pulse sequence is generated; The target pulse sequence is obtained by offsetting each element of the initial pulse sequence based on the sequence offset parameter.
3. The method for generating a swept frequency signal according to claim 1, characterized in that, The method based on a preset encoding scheme encodes the target current, the target duty cycle, and the pulse duration corresponding to the frequency values of the target pulse sequence to obtain a target encoded sequence corresponding to each frequency value, including: The target current, target duty cycle, and pulse duration corresponding to the frequency value of the target pulse sequence are converted into preset base data respectively. The preset base data are then concatenated according to a preset arrangement to obtain the initial encoding sequence corresponding to each frequency value. Preset trigger data is appended to the end of the initial encoding sequence to obtain the target encoding sequence; wherein, the trigger data is used to trigger the ultrasonic transmitting module to generate a frequency sweep signal.
4. The method for generating a swept frequency signal according to claim 1, characterized in that, After controlling the signal generation module to send the target encoded sequence and the target pulse sequence to the ultrasonic transmitting module, the method further includes: The ultrasonic transmitting module is controlled to receive the target encoded sequence and the target pulse sequence; The ultrasonic transmitting module is controlled to decode the target encoded sequence based on the encoding method to obtain the target current, the target duty cycle, and the pulse duration corresponding to each frequency value of the target pulse sequence; Based on the target pulse sequence and the target current, target duty cycle, and pulse duration corresponding to the frequency value of the target pulse sequence, the ultrasonic transmitting module is controlled to transmit ultrasonic signals.
5. The method for generating a swept frequency signal according to claim 2, characterized in that, The parameter setting interface includes a basic frequency sweep configuration interface; The step of responding to a target operation command for the signal generation module and obtaining a frequency sweep parameter set based on the target operation command includes: The basic configuration interface for frequency sweeping displays multiple first mode identifiers, each of which corresponds to a frequency sweeping mode. In response to a first selection operation instruction for the first mode identifier, a target first mode identifier is determined, and a sweep mode target parameter is obtained based on the first mode identifier. The sweep mode target parameter is used to indicate the target sweep mode corresponding to the target first mode identifier.
6. The method for generating a swept frequency signal according to claim 5, characterized in that, The parameter setting interface includes a current modulation mode configuration interface; The step of responding to a target operation command for the signal generation module and obtaining a frequency sweep parameter set based on the target operation command further includes: The current modulation method configuration interface displays multiple second mode identifiers, and each second mode identifier corresponds to a current modulation method. In response to a second selection operation command for the second mode identifier, a target second mode identifier is determined, and the current modulation target parameter is obtained based on the second mode identifier. The current modulation target parameter is used to indicate the target current modulation mode corresponding to the target second mode identifier.
7. The method for generating a swept frequency signal according to claim 6, characterized in that, The parameter setting interface includes a duty cycle configuration interface; The step of responding to a target operation command for the signal generation module and obtaining a frequency sweep parameter set based on the target operation command further includes: The duty cycle configuration interface displays multiple third mode identifiers, each of which corresponds to a duty cycle modulation mode. In response to a third selection operation command for the third mode identifier, a target third mode identifier is determined, and a duty cycle modulation target parameter is obtained based on the third mode identifier. The duty cycle modulation target parameter is used to indicate the target duty cycle modulation mode corresponding to the target third mode identifier.
8. A frequency sweep signal generation device, characterized in that, This invention relates to ultrasonic testing equipment, which includes an ultrasonic transmitting module and a signal generating module; the signal generating module is equipped with a parameter setting interface. The device includes: The parameter determination unit is used to respond to a target operation command for the parameter setting interface and obtain a frequency sweep parameter set based on the target operation command; the frequency sweep parameter set includes pulse frequency parameters, current modulation target parameters, and duty cycle modulation target parameters. A pulse generation unit is used to generate a target pulse sequence based on the pulse frequency parameters; wherein the target pulse sequence includes multiple frequency values; A current modulation unit is used to determine a target current modulation method based on the current modulation target parameters, and to perform current modulation processing based on the target current modulation method to obtain the target current corresponding to each frequency value. The duty cycle modulation unit is used to determine the target duty cycle modulation mode based on the duty cycle modulation target parameters, and to perform duty cycle modulation processing based on the target duty cycle modulation mode to obtain the target duty cycle corresponding to each frequency value. A time calculation unit is used to calculate the pulse duration of each frequency value in the target pulse sequence based on the clock cycle of the ultrasonic testing equipment. The encoding unit is used to encode the target current, the target duty cycle, and the pulse duration corresponding to the frequency values of the target pulse sequence based on a preset encoding method, so as to obtain a target encoded sequence corresponding to each frequency value; The transmitting unit is used to control the signal generation module to send the target encoding sequence and the target pulse sequence to the ultrasonic transmitting module, so that the ultrasonic transmitting module generates and transmits a sweep frequency signal based on the target encoding sequence and the target pulse sequence.
9. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the frequency sweep signal generation method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the frequency sweep signal generation method according to any one of claims 1 to 7.