Ultrasonic therapeutic instrument power control method, system, device and computer storage medium
By utilizing a combination of digital-to-analog converters and microprocessors in an ultrasound therapy device to adjust and fit calibrated power values to achieve precise power control, the problem of balancing cost and effectiveness in traditional methods is solved, thus improving the efficiency of power control and therapeutic effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN PENINSULA MEDICAL CO LTD
- Filing Date
- 2023-12-22
- Publication Date
- 2026-07-24
AI Technical Summary
Traditional power control methods for ultrasound therapy devices cannot balance chip cost and treatment effectiveness, resulting in low power control efficiency.
By using a digital-to-analog converter and a microprocessor in an ultrasound therapy device, the digital quantity of the digital-to-analog converter is adjusted according to multiple preset calibration power values to obtain calibration values. The adjustment threshold is then obtained through fitting, thereby precisely controlling the power output of the ultrasound therapy device.
This enables accurate power control on a conventional microprocessor, reducing costs and improving the controllability of treatment effects and power control efficiency.
Smart Images

Figure CN117873249B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of medical equipment technology, and in particular to a power control method, system, device, and computer storage medium for an ultrasound therapy device. Background Technology
[0002] Currently, there are two main methods for power control of ultrasound therapy devices. One method involves using a preset power-DAC (Digital Converter) relationship to control the ultrasound therapy device based on the DAC corresponding to the required power output. The other method involves obtaining the effective voltage of the ultrasound therapy device and then calculating the power corresponding to the effective voltage using the voltage-power relationship.
[0003] However, due to the large differences in load impedance among different patients and the high frequency of ultrasound, traditional ultrasound therapy power detection methods cannot balance chip cost and treatment effect. As a result, traditional ultrasound therapy power control methods suffer from low power control efficiency. Summary of the Invention
[0004] This invention proposes a power control method, system, device, and computer storage medium for an ultrasound therapy device, aiming to solve the problem of low power control efficiency in traditional ultrasound therapy device power control methods.
[0005] To address the above problems, this invention proposes a power control method for an ultrasonic therapy device. This method is applied to an ultrasonic therapy device, which includes a digital-to-analog converter and a microprocessor. The power control method includes:
[0006] The digital input of the digital-to-analog converter is adjusted according to a plurality of preset calibration power values. After the adjustment is detected, the microprocessor obtains the calibration value corresponding to each of the plurality of calibration power values, wherein the calibration value is the duty cycle or the output voltage.
[0007] The multiple calibration power values and multiple calibration values are fitted to obtain a numerical fitting relationship, and an adjustment threshold corresponding to a preset treatment power value is obtained based on the numerical fitting relationship;
[0008] The actual value corresponding to the treatment power value is obtained, and the actual value is adjusted through the adjustment threshold to control the power of the ultrasound therapy device.
[0009] Optionally, before the step of obtaining the calibration values corresponding to each of the plurality of calibration power values through the microprocessor, the method further includes:
[0010] When the calibration value is detected to characterize the output voltage, the ultrasonic sinusoidal voltage of the ultrasonic therapy device is divided by a preset voltage division strategy.
[0011] The step of obtaining the calibration values corresponding to each of the multiple calibration power values through the microprocessor includes:
[0012] When the operating voltage of the microprocessor after voltage division is detected to be less than the preset safe sampling voltage, the microprocessor obtains the calibration values corresponding to the multiple calibration power values.
[0013] Optionally, the step of obtaining the calibration value corresponding to each of the plurality of calibration power values through the microprocessor includes:
[0014] The microprocessor samples the waveforms output by the digital-to-analog converter to obtain multiple sampled data.
[0015] The maximum voltage value corresponding to each of the multiple sampled data is determined, and the calibration value corresponding to each of the multiple calibration power values is obtained based on the multiple maximum voltage values.
[0016] Optionally, the step of obtaining the actual value corresponding to the treatment power value includes:
[0017] The microprocessor acquires waveform data corresponding to the treatment power value and performs segmentation processing on the waveform data to obtain multiple segmented waveform data.
[0018] Find the maximum voltage value corresponding to each of the multiple segmented waveform data, and take the maximum voltage value with the largest value among the multiple maximum voltage values as the actual value corresponding to the treatment power value.
[0019] Optionally, the method further includes:
[0020] Get the adjustment unit;
[0021] The step of adjusting the actual value using the adjustment threshold includes:
[0022] When the adjustment threshold is detected to be greater than or equal to the actual value, the actual value is increased according to the adjustment unit;
[0023] When the adjustment threshold is detected to be less than the actual value, the actual value is reduced according to the adjustment unit.
[0024] Optionally, after the step of adjusting the actual value using the adjustment threshold, the method further includes:
[0025] Obtain the actual power value corresponding to the adjusted actual value, and determine the difference between the actual power value and the treatment power value;
[0026] When the difference is detected to be within a preset power error range, therapeutic ultrasound is output based on the actual power value;
[0027] When it is detected that the difference does not fall within the power error range, the adjusted actual value is taken as the new actual value, and the step of adjusting the actual value through the adjustment threshold is performed.
[0028] Optionally, after the step of obtaining the actual value corresponding to the treatment power value, the method further includes:
[0029] When the calibration value characterizes the output voltage, the minimum operating voltage value of the ultrasonic therapy device is obtained;
[0030] When the actual value is detected to be less than the minimum operating voltage value, an ultrasonic power supply fault message is output.
[0031] When the actual value is detected to be greater than or equal to the minimum operating voltage value, the step of adjusting the actual value by means of the adjustment threshold is performed.
[0032] Furthermore, to address the aforementioned problems, this invention also proposes a power control system for an ultrasonic therapy device. This power control system is applied to an ultrasonic therapy device, which includes a digital-to-analog converter and a microprocessor. The power control system comprises:
[0033] The calibration voltage acquisition module is used to adjust the digital quantity of the digital-to-analog converter according to a plurality of preset calibration power values, and after detecting that the adjustment is completed, obtain the calibration value corresponding to each of the plurality of calibration power values through the microprocessor, wherein the calibration value is the duty cycle or the output voltage;
[0034] The data fitting module is used to fit multiple calibration power values and multiple calibration values to obtain a numerical fitting relationship, and to obtain an adjustment threshold corresponding to a preset treatment power value based on the numerical fitting relationship.
[0035] The voltage adjustment module is used to obtain the actual value corresponding to the treatment power value, and adjust the actual value through the adjustment threshold to control the power of the ultrasound therapy device.
[0036] In addition, to solve the above problems, the present invention also proposes an ultrasonic therapy device power control device, which includes: a memory, a processor, and an ultrasonic therapy device power control program stored in the memory and executable on the processor. When the ultrasonic therapy device power control program is executed by the processor, it implements the steps of the ultrasonic therapy device power control method as described above.
[0037] In addition, to solve the above problems, the present invention also proposes a computer storage medium storing an ultrasonic therapy device power control program, wherein the ultrasonic therapy device power control program, when executed by a processor, implements the steps of the ultrasonic therapy device power control method as described above.
[0038] In this embodiment of the invention, the ultrasonic therapy device power control method is applied to an ultrasonic therapy device including a digital-to-analog converter and a microprocessor. The method adjusts the digital input of the digital-to-analog converter according to multiple preset calibration power values. After the adjustment is detected, the microprocessor obtains the calibration values corresponding to each of the multiple calibration power values, enabling the accurate calibration voltage to be obtained based on the preset calibration power values. Then, by fitting the multiple calibration values according to the multiple calibration power values, a numerical fitting relationship is obtained. Based on this numerical fitting relationship, an adjustment threshold corresponding to a preset treatment power value is obtained. This allows fitting the power-voltage correspondence based on the obtained calibration power values and calibration voltage values, thus enabling the determination of an adjustment threshold for a specific treatment power value. Finally, by acquiring the actual value corresponding to the treatment power value and adjusting the actual value using the adjustment threshold, the power of the ultrasonic therapy device is controlled. The actual value is adjusted according to the adjustment threshold and the magnitude of the actual value, making the actual value close to the adjustment threshold, thereby making the power output of the ultrasonic therapy device close to the set treatment power value.
[0039] Compared to traditional methods for detecting power in ultrasonic therapy devices, the technical solution proposed in this invention can be implemented on a common microprocessor, thus eliminating the need to purchase expensive sampling chips. Furthermore, this invention adjusts the actual value by fitting an adjustment threshold, ensuring the output power of the ultrasonic therapy device closely approximates the set therapeutic power value. This results in more accurate power control and more controllable therapeutic effects, solving the problem of traditional methods failing to balance chip cost and therapeutic efficacy. Therefore, compared to traditional methods, this invention improves the power control efficiency of ultrasonic therapy devices. Attached Figure Description
[0040] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0041] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0042] Figure 1This is a schematic diagram of the hardware operating environment of the ultrasonic therapy device power control equipment involved in the embodiments of the present invention;
[0043] Figure 2 The fitted curve is for the traditional power control method;
[0044] Figure 3 This is a flowchart illustrating the first embodiment of the power control method for an ultrasonic therapy device according to the present invention.
[0045] Figure 4 This is a schematic diagram of the voltage divider connection of an embodiment of the power control method for an ultrasonic therapy device of the present invention;
[0046] Figure 5 This is a schematic diagram of the power calibration process of an embodiment of the power control method for an ultrasonic therapy device of the present invention;
[0047] Figure 6 This is a schematic diagram of the power control process of an embodiment of the power control method for an ultrasonic therapy device of the present invention;
[0048] Figure 7 This is a functional block diagram of an embodiment of the power control system of the ultrasonic therapy device of the present invention. Detailed Implementation
[0049] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0050] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0051] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.
[0052] In this invention, unless otherwise explicitly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "fixed" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0053] Furthermore, in this invention, descriptions involving "first," "second," etc., are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of that feature. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. When the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed by this invention.
[0054] like Figure 1 As shown, Figure 1 This is a schematic diagram of the hardware operating environment of the power control device for an ultrasound therapy device involved in the embodiments of the present invention.
[0055] like Figure 1 As shown, in the hardware operating environment of the ultrasonic therapy device power control equipment, the ultrasonic therapy device power control equipment may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed RAM memory or a stable non-volatile memory, such as a disk storage device. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0056] Those skilled in the art will understand that Figure 1 The structure of the ultrasonic therapy device power control device shown does not constitute a limitation on the terminal device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0057] like Figure 1 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an ultrasound therapy device power control program.
[0058] exist Figure 1 In the device shown, network interface 1004 is mainly used to connect to the backend server and communicate data with it; user interface 1003 is mainly used to connect to the client (user end) and communicate data with it; while processor 1001 can be used to call the ultrasonic therapy instrument power control program stored in memory 1005 and perform the following operations:
[0059] The digital input of the digital-to-analog converter is adjusted according to a plurality of preset calibration power values. After the adjustment is detected, the microprocessor obtains the calibration value corresponding to each of the plurality of calibration power values, wherein the calibration value is the duty cycle or the output voltage.
[0060] The multiple calibration power values and multiple calibration values are fitted to obtain a numerical fitting relationship, and an adjustment threshold corresponding to a preset treatment power value is obtained based on the numerical fitting relationship;
[0061] The actual value corresponding to the treatment power value is obtained, and the actual value is adjusted through the adjustment threshold to control the power of the ultrasound therapy device.
[0062] Based on the above hardware structure, the overall concept of various embodiments of the ultrasonic therapy device power control method of the present invention is proposed.
[0063] Currently, there are two main methods for power detection in ultrasound therapy devices. The first method involves calibrating the power using an instrument: the DAC (digital converter) power (W) at different calibration points is stored in a memory. During treatment, the power set on the treatment interface is interpolated with the stored data to derive a function Vdac = f(PWset) relating the set power to the DAC. Based on this fitted function, the output DAC achieves a power output within a certain error range. When the calibration data is shown in Table 1, the power can be fitted according to Table 1. Figure 2 The curve shown.
[0064] Table 1
[0065] Calibration power (W) DAC value (digital quantity) 2 400 4 900 6 1500 8 2400 10 3300 12 3800
[0066] exist Figure 2 middle, Figure 2 The horizontal axis represents power, and the vertical axis represents the DAC value. When the power is set to 9W, the DAC value corresponding to 9W can be calculated based on the formula fitted from the graph.
[0067] dac=-3.9352*9^3+87.996*9^2-215.41*9+533.33=2853, that is, the microprocessor can achieve a power of 9W by outputting a DAC value of 2853.
[0068] However, since only a certain DAC voltage value is supplied during the treatment process, the actual power during the actual treatment process cannot be detected. Therefore, it cannot be guaranteed that the output power during the treatment process is the actual power, which will affect the treatment effect and safety. Furthermore, different patients have large differences in load impedance, and it is difficult to guarantee the consistency of power output among different patients even when the same DAC voltage is output.
[0069] The second method is to calculate the effective voltage value V of the ultrasonic energy. The power can be detected according to P = V^2 / R. However, since the ultrasonic frequency is high, such as 8MHz, according to Shannon's sampling theorem, an ADC sampling chip with a sampling rate of 8MHz*(5-10) = 40MHz-80MHz (0.025us-0.0125us) is required. Since such sampling chips are expensive, the cost of power control will be high.
[0070] Therefore, traditional methods for detecting the power of ultrasound therapy devices cannot balance chip cost and treatment effectiveness, resulting in inefficient power control of ultrasound therapy devices.
[0071] To address the above problems, this invention proposes a power control method for an ultrasonic therapy device.
[0072] Based on the overall concept of the various embodiments of the ultrasonic therapy device power control method of the present invention described above, various embodiments of the ultrasonic therapy device power control method of the present invention are proposed.
[0073] It should be noted that the execution subject of the ultrasonic therapy device power control method of the present invention is the ultrasonic therapy device power control device, which can be a computer, tablet, mobile phone, or other devices. In the following embodiments, the execution subject will be omitted from the description.
[0074] Please refer to Figure 3 , Figure 3 This is a flowchart illustrating the first embodiment of the ultrasonic therapy device power control method of the present invention. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps of the ultrasonic therapy device power control method of the present invention can be performed in a different order.
[0075] In this embodiment, the ultrasonic therapy device power control method is applied to an ultrasonic therapy device, which includes a digital-to-analog converter and a microprocessor. The ultrasonic therapy device power control method includes:
[0076] Step S10: Adjust the digital quantity of the digital-to-analog converter according to multiple preset calibration power values, and after detecting that the adjustment is completed, obtain the calibration value corresponding to each of the multiple calibration power values through the microprocessor, wherein the calibration value is the duty cycle or the output voltage;
[0077] It should be noted that when the calibration value is the output voltage, in order to predict the voltage corresponding to any power value, it is necessary to first determine the output voltage corresponding to each of the preset calibration power values. Similarly, when the calibration value is the duty cycle, in order to predict the duty cycle corresponding to any power value, it is necessary to first determine the duty cycle corresponding to each of the preset calibration power values. Here, the calibration power value is the power value specified by the technician, and the calibration value is the output voltage or duty cycle when the ultrasonic therapy instrument outputs a specified power value. The duty cycle refers to the percentage of time the circuit is on during the entire circuit's operating cycle.
[0078] When controlling the output power of the ultrasonic therapy device, multiple power values specified by the technician are first obtained, and the digital input of the digital-to-analog converter is adjusted accordingly so that the output power of the ultrasonic therapy device reaches the power value specified by the technician. When the output power reaches the specified power value, it is determined that the adjustment is complete. Then, the duty cycle or output voltage corresponding to each of the multiple specified power values is obtained through the microprocessor in the ultrasonic therapy device.
[0079] As an example, when the calibration value refers to the output voltage, assuming the power values specified by the technician are 2W, 5W, 8W, and 12W, then for a power value of 2W, the digital input of the digital-to-analog converter is adjusted so that the output power of the ultrasound therapy device is 2W, and then the microprocessor in the ultrasound therapy device obtains the output voltage corresponding to 2W; similarly, for a power value of 5W, the digital input of the digital-to-analog converter is adjusted so that the output power of the ultrasound therapy device is 5W, and then the microprocessor in the ultrasound therapy device obtains the output voltage corresponding to 5W; the steps for obtaining the output voltages corresponding to 8W and 12W are similar to the above steps and will not be repeated here.
[0080] Optionally, in one feasible embodiment, step S10 above includes:
[0081] Step S101: The microprocessor samples the waveform output by the digital-to-analog converter to obtain multiple sampled data.
[0082] Step S102: Determine the maximum voltage value corresponding to each of the multiple sampled data, and obtain the calibration value corresponding to each of the multiple calibration power values based on the multiple maximum voltage values.
[0083] It should be noted that, since the sampling rate of the microprocessor's ADC is insufficient to completely acquire the ultrasonic sine waveform, the sampling data in this invention refers to the aliased digital sampling signal acquired by the microprocessor.
[0084] When the digital adjustment of the digital-to-analog converter in the microprocessor is completed and the calibration value is detected to represent the output voltage, the microprocessor can sample the waveform output by the digital-to-analog converter to obtain the aliased digital sampling signals corresponding to each of the multiple calibration power values. Then, the peak signal extraction processing (e.g., processing by the AMPD peak detection algorithm) is performed on the multiple aliased digital sampling signals to obtain the maximum voltage value corresponding to each of the multiple aliased digital sampling signals, and the calibration value corresponding to each of the multiple calibration power values is obtained based on the multiple maximum voltage values.
[0085] It is important to understand that the method of obtaining the calibration values corresponding to the calibration power values based on multiple maximum voltage values can be either by compensating the maximum voltage values through preset loss parameters (e.g., superposition, multiplication, etc.) or by directly using multiple maximum voltage values as multiple maximum calibration values.
[0086] As an example, assuming the calibration power values are 2W, 5W, 8W, and 12W, when the output power is detected to be 2W after adjusting the digital quantity, the waveform output by the digital-to-analog converter at 2W is sampled by the microprocessor to obtain the aliased digital sampling signal corresponding to 2W. Then, the maximum voltage value in the aliased digital sampling information is determined by the AMPD peak detection algorithm, and this maximum voltage value is used as the calibration value corresponding to 2W. Alternatively, the maximum voltage value is compensated by a preset loss parameter to obtain the calibration value corresponding to 2W. When the output power is detected to be 5W, 8W, or 12W after adjusting the digital quantity, the steps for calculating the calibration value corresponding to 5W, 8W, or 12W are similar to the steps for calculating the calibration value of 2W, and will not be repeated here.
[0087] Step S20: Fit multiple calibration power values and multiple calibration values to obtain a numerical fitting relationship, and obtain an adjustment threshold corresponding to a preset treatment power value based on the numerical fitting relationship;
[0088] After obtaining multiple calibration power values and their corresponding calibration values, the multiple calibration power values and their corresponding calibration values are fitted using the least squares method to obtain the correspondence between power and calibration values, i.e., to obtain the numerical fitting relationship. Then, based on the correspondence between power and calibration values, the preset adjustment threshold corresponding to the treatment power value used for treatment is obtained.
[0089] As an example, assuming the calibration power values are 2W, 5W, 8W, and 12W, and the corresponding calibration values are 8V, 15V, 20V, and 25V, the least squares method can be used to fit 2W-8V, 5W-15V, 8W-20V, and 12W-25V to obtain the correspondence between power and calibration values. Assuming the correspondence is v = a1 + a2*p*p + a3**p*p*p, where v is the calibration value, p is the power value, and a1, a2, and a3 are constants, then when the treatment power is 10W, the calibration value corresponding to 10W can be obtained according to the above correspondence, and this calibration value can be used as the adjustment threshold.
[0090] Step S30: Obtain the actual value corresponding to the treatment power value, and adjust the actual value through the adjustment threshold to control the power of the ultrasound therapy device.
[0091] It should be noted that the type of actual value and the type of adjustment threshold correspond to the type of calibration value. If the calibration value refers to the duty cycle, then the actual value refers to the actual duty cycle, and the adjustment threshold refers to the duty cycle obtained based on the numerical fitting relationship. If the calibration value refers to the output voltage, then the actual value refers to the actual output voltage, and the adjustment threshold refers to the output voltage obtained based on the numerical fitting relationship. Here, the output voltage refers to the output voltage of the analog-to-digital converter in the ultrasonic therapy device.
[0092] When the calibration value characterizes the output voltage, after obtaining the adjustment threshold corresponding to the preset treatment power value, the actual output voltage of the analog-to-digital converter when the ultrasound therapy device outputs the treatment power value is also obtained. Then, the actual output voltage is adjusted using the adjustment threshold obtained by least squares fitting to accurately control the power of the ultrasound therapy device. Similarly, when the calibration value characterizes the duty cycle, after obtaining the adjustment threshold corresponding to the preset treatment power value, the actual duty cycle of the circuit when the ultrasound therapy device outputs the treatment power value is also obtained. Then, the actual duty cycle is adjusted using the adjustment threshold obtained by least squares fitting to accurately control the power of the ultrasound therapy device.
[0093] As an example, assuming the treatment power is 10W and the adjustment threshold obtained by least squares fitting is 30V, when the actual value corresponding to 10W is 27V, the actual value can be adjusted by increasing or decreasing the threshold of 30V to control the power of the ultrasound therapy device to 10W, or to control the power of the ultrasound therapy device to be close to 10W.
[0094] Optionally, in one feasible embodiment, step S30 above includes:
[0095] Step S301: The microprocessor collects waveform data corresponding to the treatment power value and performs segmentation processing on the waveform data to obtain multiple segmented waveform data.
[0096] It should be noted that waveform data refers to the aliased digital sampling signal of the ultrasound therapy device acquired by the microprocessor when the output power of the ultrasound therapy device is at the therapeutic power value. Furthermore, since the aliased digital sampling signal is 12 bits, it can be sampled by a 16-bit or higher microprocessor. Additionally, segmentation processing refers to the process of dividing a signal into multiple segments. Through segmentation processing, longer signals can be divided into shorter signals, thereby improving the signal processing speed.
[0097] When the calibration value refers to the output voltage, after controlling the output power of the ultrasonic therapy instrument to the treatment power value, the aliased digital sampling signal of the ultrasonic therapy instrument is acquired by a 16-bit or higher microprocessor, and the acquired aliased digital sampling signal is divided into multiple segments to obtain multiple segmented waveform data.
[0098] Step S302: Find the maximum voltage value corresponding to each of the multiple segmented waveform data, and take the maximum voltage value with the largest value among the multiple maximum voltage values as the actual value corresponding to the treatment power value.
[0099] After obtaining multiple segmented waveform data, the maximum voltage value corresponding to each segmented waveform data is found, thereby obtaining multiple maximum voltage values. Then, the voltage value with the largest value among the multiple maximum voltage values is taken as the actual value corresponding to the treatment power value.
[0100] As an example, when the treatment power is 10W, the aliased digital sampling signal output by the ultrasound therapy device can be acquired by a 2k 16-bit (2k storage space) microprocessor. The acquired aliased digital sampling signal is divided into four 512 aliased digital sampling signals (four segmented waveform data). Then, the maximum voltage value of the four 512 aliased digital signals can be found. The maximum voltage value with the largest value among the four maximum voltage values is taken as the actual value corresponding to the treatment power of 10W. By dividing a segment of aliased digital sampling signal into multiple segments, the signal processing speed is greatly improved.
[0101] Optionally, in one feasible embodiment, the power control method for the ultrasound therapy device further includes:
[0102] Step S40: Obtain the adjustment unit;
[0103] It should be noted that the adjustment unit refers to the amount of change in a single adjustment operation. Specifically, when the calibration value represents the duty cycle, the adjustment unit is the unit corresponding to the duty cycle; when the calibration value represents the output voltage, the adjustment unit is the unit corresponding to the output voltage. For example, an adjustment unit of 1V means that the voltage change before and after each adjustment is 1V.
[0104] Based on this, step S30 above also includes:
[0105] Step S303: When the adjustment threshold is detected to be greater than or equal to the actual value, the actual value is increased according to the adjustment unit.
[0106] Step S304: When the adjustment threshold is detected to be less than the actual value, the actual value is reduced according to the adjustment unit.
[0107] It should be noted that since voltage and power are directly proportional, the higher the voltage, the higher the power.
[0108] When adjusting the threshold and the actual value, if the threshold is detected to be greater than or equal to the actual value, it indicates that the output power of the ultrasound therapy device has not yet reached the set treatment power value. Therefore, the actual value can be increased according to the adjustment unit to increase the output power of the ultrasound therapy device. If the threshold is detected to be less than the actual value, it indicates that the output power of the ultrasound therapy device has exceeded the set treatment power value. Therefore, the actual value can be decreased according to the adjustment unit to reduce the output power of the ultrasound therapy device.
[0109] As an example, when the calibration value refers to the output voltage, the adjustment threshold corresponding to an output power of 10W is 23V. When the actual value is detected to be less than or equal to the adjustment threshold, it can be determined that the actual output power of the ultrasonic therapy device has not yet reached 10W. Therefore, the actual value can be increased. For example, when the adjustment unit is 1V, the sum of the actual value and the adjustment unit, 11V, can be used as the new actual voltage to make the output power closer to 10W. When the actual value is detected to be greater than the adjustment threshold, it can be determined that the actual output power of the ultrasonic therapy device has exceeded 10W. Therefore, the actual value can be decreased. For example, when the adjustment unit is 1V, the difference between the actual value and the adjustment unit, 9V, can be used as the new actual voltage to make the output power closer to 10W. When the calibration value refers to the duty cycle, the adjustment logic is similar to the adjustment logic of the output voltage described above, and will not be repeated here.
[0110] Optionally, in one feasible embodiment, after step S30 above, the method further includes:
[0111] Step S50: Obtain the actual power value corresponding to the adjusted actual value, and determine the difference between the actual power value and the treatment power value;
[0112] Step S60: When the difference is detected to be within a preset power error range, a therapeutic ultrasound is output based on the actual power value;
[0113] Step S70: When it is detected that the difference does not belong to the power error range, the adjusted actual value is taken as the new actual value, and the step of adjusting the actual value through the adjustment threshold is executed.
[0114] In this embodiment, since the present invention adjusts the actual value by adjusting the unit, a longer adjustment time is required when the difference between the actual value and the adjustment threshold is large. To improve the working efficiency of the ultrasound therapy device and reduce the adjustment time, the actual power value corresponding to the adjusted actual value can be obtained, and the difference between the actual power value and the treatment power value can be determined. Then, when the difference is detected to be within a preset power error range, the treatment ultrasound is output based on the actual power value; when the difference is detected to be outside the power error range, the adjusted actual value is used as the new actual value, and the step of adjusting the actual value by adjusting the threshold is executed.
[0115] As an example, when the treatment power value is 10W, the adjustment threshold corresponding to 10W is 23V, and the actual value after adjusting the actual voltage is 22V, the actual power value corresponding to 22V will be obtained, and the difference between the actual power value and 10W will be determined. Assuming the power error range is 0-0.2W, when the actual power value is 9.9W, since the difference is 0.1W, and 0.1W falls within the power error range, there is no need to adjust the actual value further, and the treatment ultrasound can be output based on the actual power value of 9.9W. When the actual power value is 9.5W, since the difference is 0.5W, and 0.5W does not fall within the power error range, the adjusted actual value of 22V will be used as the new actual value, and the step of adjusting the actual value by adjusting the threshold will be executed. When the calibration value refers to the duty cycle, the processing logic is similar to the processing logic of the output voltage described above, and will not be repeated here.
[0116] In this embodiment, the technical solution proposed in this invention can be implemented on a common microprocessor; therefore, this invention does not require the purchase of expensive sampling chips. Furthermore, this invention adjusts the actual value by fitting an adjustment threshold, making the output power of the ultrasound therapy device close to the set treatment power value. This results in more accurate power control and more controllable treatment effects, solving the problem that traditional methods cannot balance chip cost and treatment effectiveness. Therefore, compared with traditional methods, this invention can improve the power control efficiency of the ultrasound therapy device.
[0117] Furthermore, based on the first embodiment of the ultrasonic therapy device power control method of the present invention described above, a second embodiment of the ultrasonic therapy device power control method of the present invention is proposed.
[0118] In this embodiment, after step S10, the method further includes:
[0119] Step S80: When the calibration value is detected to represent the output voltage, the ultrasonic sinusoidal voltage of the ultrasonic therapy device is divided by a preset voltage division strategy.
[0120] It should be noted that the voltage division strategy refers to the voltage division ratio, that is, the proportion of each voltage division in the voltage division network. In this embodiment, since the ultrasonic power supply used by the ultrasonic therapy device outputs a high-voltage, high-frequency sinusoidal voltage, directly sampling it through the microprocessor in the ultrasonic therapy device would burn out the microprocessor and its peripheral circuits. Therefore, it is necessary to use a voltage division network and a preset voltage division ratio to divide the high-voltage, high-frequency sinusoidal voltage to a level lower than the safe sampling voltage of the microprocessor.
[0121] Based on this, step S10 above also includes:
[0122] Step A: When the operating voltage of the microprocessor after voltage division is detected to be less than the preset safe sampling voltage, the microprocessor obtains the calibration values corresponding to the multiple calibration power values.
[0123] That is, when the operating voltage of the microprocessor after voltage division is detected to be lower than the preset safe sampling voltage, the waveform is sampled by the microprocessor, so that the calibration values corresponding to multiple calibration power values can be obtained without damaging the microprocessor.
[0124] As an example, please refer to Figure 4 , Figure 4 This is a schematic diagram of a voltage divider connection in an embodiment of the power control method for an ultrasonic therapy device of the present invention. The voltage divider network enables the ADC in the microprocessor to sample the 4-8MHz ultrasonic sinusoidal voltage.
[0125] Optionally, in one feasible embodiment, after step S30 above, the method further includes:
[0126] Step S90: When the calibration value representing the output voltage is detected, the minimum operating voltage value of the ultrasonic therapy instrument is obtained;
[0127] Step S100: When the actual value is detected to be less than the minimum operating voltage value, output ultrasonic power supply fault information;
[0128] Step S110: When the actual value is detected to be greater than or equal to the minimum operating voltage value, the step of adjusting the actual value by means of the adjustment threshold is executed.
[0129] It should be noted that after obtaining the actual values, it is also necessary to perform fault diagnosis on the ultrasonic power supply based on the actual values.
[0130] When the output voltage of the calibration value is detected, the minimum operating voltage value of the ultrasonic therapy device is obtained. The minimum operating voltage value can be set by the technician, marked at the time of manufacture, or determined based on the voltage value corresponding to the minimum calibration power value. Then, the actual value is compared with the minimum operating voltage value. If the actual value is less than the minimum operating voltage value, it is determined that the ultrasonic power supply is faulty and ultrasonic power supply fault information is output. If the actual value is greater than or equal to the minimum operating voltage value, it can be determined that the ultrasonic power supply is not faulty. Therefore, the step of adjusting the actual value by adjusting the threshold can be performed.
[0131] As an example, please refer to Figure 5 , Figure 5 This is a schematic diagram of the power calibration process of an embodiment of the ultrasonic therapy device power control method of the present invention. After calibration begins, the power of the ultrasonic therapy device is adjusted to reach a preset calibration power value by adjusting the DAC value. After the adjustment is completed, the microprocessor samples the waveforms corresponding to different calibration power values and segments the sampled signals to find the maximum value (maximum voltage value) of the segmented signals. Then, the calibration (calibration value) corresponding to different calibration power values is obtained based on multiple maximum voltage values, and the calibration ends.
[0132] As an example, please refer to Figure 6 , Figure 6 This is a schematic diagram of the power control process of an embodiment of the ultrasonic therapy device power control method of the present invention. After setting the treatment parameters (treatment power value), it is necessary to read the calibration value (calibrated power value and the corresponding calibration value). Then, the formula for the maximum peak voltage Vcli (calibrated value) and power power (calibrated power value) is fitted using the least squares method, and then the 2k... The 16-bit processor initiates DMA sampling and divides the sampled 2k16-bit unsigned buffer into four 512-bit buffers. It then searches for the maximum value in each of the four 512-bit buffers, and finally finds the maximum value among these four, Vmax (the actual value). If Vmax is detected to be less than the minimum operating voltage (when the minimum operating voltage is half the calibration value corresponding to the minimum calibration power value), an ultrasonic voltage output fault is identified. If Vmax is detected to be less than or equal to a preset adjustment threshold (where k is a coefficient, ranging from 0 to 1, and k=0 indicating the magnitude of the Vmax adjustment threshold), the actual value is increased by adjusting the unit (here, the adjustment unit is 1V). If Vmax is detected to be greater than the preset adjustment threshold, the actual value is decreased by adjusting the unit until the set power (the treatment power value) is reached. Ultrasonic therapy is then output according to the set power until the treatment is completed.
[0133] In this embodiment, the present invention can protect the normal operation of the ultrasonic therapy device by diagnosing faults in the ultrasonic power supply and by using a voltage division strategy, thereby maintaining the premise of ultrasonic power control.
[0134] Furthermore, the present invention also proposes a power control system for an ultrasonic therapy device, wherein the power control system is applied to the ultrasonic therapy device, and the ultrasonic therapy device includes a digital-to-analog converter and a microprocessor.
[0135] Please refer to Figure 7 The power control system of the ultrasound therapy device includes:
[0136] The calibration voltage acquisition module 10 is used to adjust the digital quantity of the digital-to-analog converter according to a plurality of preset calibration power values, and after detecting that the adjustment is completed, obtain the calibration value corresponding to each of the plurality of calibration power values through the microprocessor.
[0137] The data fitting module 20 is used to fit multiple calibration power values and multiple calibration values to obtain a numerical fitting relationship, and to obtain an adjustment threshold corresponding to a preset treatment power value based on the numerical fitting relationship, wherein the calibration value is the duty cycle or the output voltage;
[0138] The voltage adjustment module 30 is used to obtain the actual value corresponding to the treatment power value, and adjust the actual value through the adjustment threshold to control the power of the ultrasound therapy device.
[0139] Optionally, the power control system of the ultrasound therapy device further includes:
[0140] The voltage divider module is used to divide the ultrasonic sinusoidal voltage of the ultrasonic therapy device according to a preset voltage divider strategy when a calibration value is detected to characterize the output voltage.
[0141] Based on this, the calibration voltage acquisition module 10 is also used to obtain the calibration value corresponding to each of the multiple calibration power values through the microprocessor when the operating voltage of the microprocessor after voltage division is detected to be less than the preset safe sampling voltage.
[0142] Optionally, the calibration voltage acquisition module 10 includes:
[0143] The waveform sampling unit is used to sample the waveform output by the digital-to-analog converter through the microprocessor to obtain multiple sampled data.
[0144] A voltage value determination unit is used to determine the maximum voltage value corresponding to each of the multiple sampled data, and to obtain the calibration value corresponding to each of the multiple calibration power values based on the multiple maximum voltage values.
[0145] Optionally, the voltage regulation module 30 includes:
[0146] The segmentation unit is used to acquire waveform data corresponding to the treatment power value through the microprocessor, and to segment the waveform data to obtain multiple segmented waveform data.
[0147] The actual value determination unit is used to find the maximum voltage value corresponding to each of the multiple segmented waveform data, and take the maximum voltage value with the largest value among the multiple maximum voltage values as the actual value corresponding to the treatment power value.
[0148] Optionally, the power control system of the ultrasound therapy device further includes:
[0149] The unit acquisition module is used to obtain the adjustment unit;
[0150] The voltage regulation module 30 also includes:
[0151] A value increase unit is used to increase the actual value according to the adjustment unit when the adjustment threshold is detected to be greater than or equal to the actual value.
[0152] The numerical reduction unit is used to reduce the actual value according to the adjustment unit when the adjustment threshold is detected to be less than the actual value.
[0153] Optionally, the power control system of the ultrasound therapy device further includes:
[0154] The power difference acquisition module is used to acquire the actual power value corresponding to the adjusted actual value, and determine the difference between the actual power value and the treatment power value;
[0155] A normal output module is used to output therapeutic ultrasound based on the actual power value when the difference is detected to be within a preset power error range.
[0156] The continuous adjustment module is used to take the adjusted actual value as the new actual value when it detects that the difference does not belong to the power error range, and to perform the step of adjusting the actual value through the adjustment threshold.
[0157] Optionally, the power control system of the ultrasound therapy device further includes:
[0158] A minimum voltage acquisition module is used to acquire the minimum operating voltage value of the ultrasonic therapy instrument when a calibration value characterizing the output voltage is detected.
[0159] The fault output module is used to output ultrasonic power supply fault information when the actual value is detected to be less than the minimum operating voltage value.
[0160] The fault-free adjustment module is used to perform the step of adjusting the actual value by means of the adjustment threshold when the actual value is detected to be greater than or equal to the minimum operating voltage value.
[0161] The functions of each module in the above-mentioned ultrasonic therapy instrument power control system correspond to the steps in the above-mentioned ultrasonic therapy instrument power control method embodiment, and their functions and implementation processes will not be described in detail here.
[0162] Furthermore, the present invention also proposes an ultrasonic therapy device power control device, which includes: a memory, a processor, and an ultrasonic therapy device power control program stored in the memory and executable on the processor. When the ultrasonic therapy device power control program is executed by the processor, it implements the steps of the ultrasonic therapy device power control method of the present invention as described above.
[0163] The specific embodiments of the ultrasonic therapy power control device of the present invention are basically the same as the embodiments of the ultrasonic therapy power control method described above, and will not be repeated here.
[0164] Furthermore, the present invention also proposes a computer storage medium storing an ultrasonic therapy device power control program, which, when executed by a processor, implements the steps of the ultrasonic therapy device power control method of the present invention as described above.
[0165] The specific embodiments of the computer storage medium of the present invention are basically the same as the embodiments of the power control method of the ultrasound therapy device described above, and will not be repeated here.
[0166] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0167] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0168] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be an in-vehicle computer, smartphone, computer, or server, etc.) to execute the methods described in the various embodiments of this application.
[0169] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A power control method for an ultrasonic therapy device, characterized in that, The power control method for the ultrasonic therapy device is applied to the ultrasonic therapy device, which includes a digital-to-analog converter and a microprocessor. The power control method for the ultrasonic therapy device includes: The digital input of the digital-to-analog converter is adjusted according to a plurality of preset calibration power values. After the adjustment is detected, the microprocessor obtains the calibration value corresponding to each of the plurality of calibration power values, wherein the calibration value is the duty cycle or the output voltage. The multiple calibration power values and multiple calibration values are fitted to obtain a numerical fitting relationship, and an adjustment threshold corresponding to a preset treatment power value is obtained based on the numerical fitting relationship; The actual value corresponding to the treatment power value is obtained, and the actual value is adjusted through the adjustment threshold to control the power of the ultrasound therapy device.
2. The power control method for an ultrasonic therapy device as described in claim 1, characterized in that, Before the step of obtaining the calibration values corresponding to each of the plurality of calibration power values through the microprocessor, the method further includes: When the calibration value is detected to characterize the output voltage, the ultrasonic sinusoidal voltage of the ultrasonic therapy device is divided by a preset voltage division strategy. The step of obtaining the calibration values corresponding to each of the multiple calibration power values through the microprocessor includes: When the operating voltage of the microprocessor after voltage division is detected to be less than the preset safe sampling voltage, the microprocessor obtains the calibration values corresponding to the multiple calibration power values.
3. The power control method for an ultrasonic therapy device as described in claim 2, characterized in that, The step of obtaining the calibration values corresponding to each of the multiple calibration power values through the microprocessor includes: The microprocessor samples the waveforms output by the digital-to-analog converter to obtain multiple sampled data. The maximum voltage value corresponding to each of the multiple sampled data is determined, and the calibration value corresponding to each of the multiple calibration power values is obtained based on the multiple maximum voltage values.
4. The power control method for an ultrasonic therapy device as described in claim 2, characterized in that, The step of obtaining the actual value corresponding to the treatment power value includes: The microprocessor acquires waveform data corresponding to the treatment power value and performs segmentation processing on the waveform data to obtain multiple segmented waveform data. Find the maximum voltage value corresponding to each of the multiple segmented waveform data, and take the maximum voltage value with the largest value among the multiple maximum voltage values as the actual value corresponding to the treatment power value.
5. The power control method for an ultrasonic therapy device as described in claim 1, characterized in that, The method further includes: Get the adjustment unit; The step of adjusting the actual value using the adjustment threshold includes: When the adjustment threshold is detected to be greater than or equal to the actual value, the actual value is increased according to the adjustment unit; When the adjustment threshold is detected to be less than the actual value, the actual value is reduced according to the adjustment unit.
6. The power control method for an ultrasonic therapy device as described in claim 1, characterized in that, After the step of adjusting the actual value using the adjustment threshold, the method further includes: Obtain the actual power value corresponding to the adjusted actual value, and determine the difference between the actual power value and the treatment power value; When the difference is detected to be within a preset power error range, therapeutic ultrasound is output based on the actual power value; When it is detected that the difference does not fall within the power error range, the adjusted actual value is taken as the new actual value, and the step of adjusting the actual value through the adjustment threshold is performed.
7. The power control method for an ultrasonic therapy device as described in any one of claims 1 to 6, characterized in that, After the step of obtaining the actual value corresponding to the treatment power value, the method further includes: When the calibration value characterizes the output voltage, the minimum operating voltage value of the ultrasonic therapy device is obtained; When the actual value is detected to be less than the minimum operating voltage value, an ultrasonic power supply fault message is output. When the actual value is detected to be greater than or equal to the minimum operating voltage value, the step of adjusting the actual value by means of the adjustment threshold is performed.
8. A power control system for an ultrasonic therapy device, characterized in that, The power control system for the ultrasound therapy device is applied to the ultrasound therapy device, which includes a digital-to-analog converter and a microprocessor. The power control system for the ultrasound therapy device includes: The calibration voltage acquisition module is used to adjust the digital quantity of the digital-to-analog converter according to a plurality of preset calibration power values, and after detecting that the adjustment is completed, obtain the calibration value corresponding to each of the plurality of calibration power values through the microprocessor, wherein the calibration value is the duty cycle or the output voltage; The data fitting module is used to fit multiple calibration power values and multiple calibration values to obtain a numerical fitting relationship, and to obtain an adjustment threshold corresponding to a preset treatment power value based on the numerical fitting relationship; The voltage adjustment module is used to obtain the actual value corresponding to the treatment power value, and adjust the actual value through the adjustment threshold to control the power of the ultrasound therapy device.
9. A power control device for an ultrasonic therapy instrument, characterized in that, The ultrasonic therapy device power control device includes: a memory, a processor, and an ultrasonic therapy device power control program stored in the memory and executable on the processor. When the ultrasonic therapy device power control program is executed by the processor, it implements the steps of the ultrasonic therapy device power control method as described in any one of claims 1 to 7.
10. A computer storage medium, characterized in that, The computer storage medium stores an ultrasonic therapy device power control program, which, when executed by a processor, implements the steps of the ultrasonic therapy device power control method as described in any one of claims 1 to 7.