A data consistency control method and system for shortwave therapy devices

By employing dynamic mapping, logical verification, and consistency comparison mechanisms, the problem of inconsistency between treatment parameters and hardware configuration in shortwave therapy devices has been resolved, achieving accurate output of treatment parameters and improving security, thus ensuring the stability and adaptability of the system.

CN122018411BActive Publication Date: 2026-07-17NANJING HUAWEI MEDICAL EQUIP

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NANJING HUAWEI MEDICAL EQUIP
Filing Date
2026-04-08
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

In existing shortwave therapy devices, the treatment parameters and hardware configurations are inconsistent, resulting in inaccurate treatment energy output, which affects the efficacy and poses potential risks. Traditional methods cannot guarantee data consistency and treatment safety.

Method used

Employing dynamic mapping, logical verification, and consistency comparison mechanisms, and using a nonlinear mapping table and circuit physical characteristic model, the system ensures the synchronization of treatment parameters with hardware configuration, and provides a real-time monitoring and feedback mechanism to block abnormal parameters.

Benefits of technology

The accuracy and safety of shortwave therapy have been improved, and the dynamic calibration and optimization mechanism has enhanced the system's adaptability and long-term stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122018411B_ABST
    Figure CN122018411B_ABST
Patent Text Reader

Abstract

This invention relates to the field of medical electronic device control technology, and discloses a data consistency control method and system for a shortwave therapy device. The method receives target treatment parameters from a host computer and dynamically maps them to hardware configuration parameters, including oscillator control words and power amplifier bias voltage control codes. Logical verification rules are established based on the circuit's physical characteristics to ensure data logic consistency among the hardware configuration parameters. After successful logical verification, the hardware configuration parameters are sent to the relevant circuits, and the actual execution parameters are read in real time for consistency comparison. Parameter loading and output control are triggered only when the comparison passes. This invention effectively improves the treatment accuracy and safety of shortwave therapy devices through a triple mechanism of dynamic mapping, logical verification, and consistency comparison.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of medical electronic equipment control technology, and specifically to a data consistency control method and system for a shortwave therapy device. Background Technology

[0002] In existing shortwave therapy technology, the treatment parameters issued by the host computer and the actual hardware execution parameters are often inconsistent due to factors such as nonlinear characteristics and circuit physical constraints, resulting in inaccurate treatment energy output, affecting the therapeutic effect and even posing potential risks to patients.

[0003] Traditional methods often rely on fixed mapping tables or simple verification, which are difficult to fully cover all working scenarios. In particular, when parameters change dynamically, they cannot effectively guarantee data consistency and treatment safety.

[0004] Furthermore, the lack of a real-time monitoring and feedback mechanism makes it difficult to promptly block and alarm when parameters are abnormal, thus limiting the precision and reliability of shortwave therapy devices. Summary of the Invention

[0005] To address the aforementioned technical shortcomings, the purpose of this invention is to provide a data consistency control method and system for shortwave therapy devices, thereby resolving the problem of inaccurate treatment caused by inconsistencies between treatment parameters and hardware configurations of shortwave therapy devices.

[0006] To solve the above-mentioned technical problems, the present invention adopts the following technical solution:

[0007] In a first aspect, the present invention provides a data consistency control method for a shortwave therapy device, comprising:

[0008] Step S1: Receive the set of target treatment parameters sent by the host computer, wherein the set of target treatment parameters includes at least the operating frequency and output power;

[0009] Step S2: Based on the pre-stored mapping relationship table, dynamically map each parameter in the target treatment parameter set to the corresponding hardware configuration parameter set. The hardware configuration parameter set includes the oscillator control word and the power amplifier bias voltage control code.

[0010] Step S3: Based on the circuit physical characteristics of the shortwave therapy device, establish logical verification rules between hardware configuration parameters. After generating the hardware configuration parameter set, call the logical verification rules to verify the logical relationship between the oscillator control word and the power amplifier bias voltage control code. When the verification passes, determine that the data logic is consistent.

[0011] Step S4: After the logic verification is passed, the hardware configuration parameter set is sent to the waveform generation circuit and the power drive circuit; the oscillation frequency status register value of the waveform generation circuit and the output voltage sample value of the power drive circuit are read in real time; the read oscillation frequency status register value and output voltage sample value are compared with the corresponding execution parameters in the hardware configuration parameter set.

[0012] Step S5: Trigger parameter loading and output control signals only when the consistency comparison passes.

[0013] Preferably, in one possible implementation of the first aspect, the dynamic mapping process includes:

[0014] Based on the nonlinear characteristics of the hardware circuit of the shortwave therapy device, a nonlinear mapping table is established between the operating frequency, output power and oscillator control word and power amplifier bias voltage control code.

[0015] The nonlinear mapping table was obtained through calibration experiments and stores the parameter correspondence under discrete operating points;

[0016] After receiving the set of target treatment parameters, the nonlinear mapping table is queried. If the target parameters match the discrete operating points in the table, the corresponding hardware configuration parameters are directly obtained.

[0017] If the target parameter is between the discrete operating points in the table, then the oscillator control word and power amplifier bias voltage control code corresponding to the target parameter are generated by interpolation calculation based on the parameters of the nearest discrete operating points.

[0018] Preferably, in one possible implementation of the first aspect, the interpolation calculation is a bilinear interpolation calculation;

[0019] Using the target operating frequency and target output power as coordinates, locate the rectangular region in the two-dimensional parameter space formed by the nonlinear mapping table;

[0020] Obtain the oscillator control word and power amplifier bias voltage control code corresponding to the discrete operating points at the four vertices of the rectangular region;

[0021] Bilinear interpolation is performed on the oscillator control word and the power amplifier bias voltage control code along the frequency and power dimensions to calculate the set of hardware configuration parameters corresponding to the target parameters.

[0022] Preferably, in one possible implementation of the first aspect, the logical verification rule establishment process includes:

[0023] A theoretical model is constructed based on the impedance matching principle of the shortwave therapy device's transmission channel and the physical constraint relationship between the oscillator frequency and the power amplifier.

[0024] Through theoretical modeling, the effective range of power amplifier bias voltage corresponding to the operating frequency set by the oscillator control word is obtained;

[0025] The correspondence between operating frequency and effective voltage range is fixed and stored to form logical verification rules.

[0026] Preferably, in one possible implementation of the first aspect, the theoretical model construction process includes:

[0027] Based on the circuit structure of the shortwave therapy device's transmission channel, an equivalent circuit model including an oscillator, impedance matching network, power amplifier, and load is established.

[0028] Based on the equivalent circuit model, the equivalent load impedance reflected to the power amplifier output through the impedance matching network is analyzed at different operating frequencies.

[0029] Based on the operating characteristics of the power amplifier, a mathematical model is established to establish the relationship between output power, efficiency, bias voltage, and equivalent load impedance.

[0030] Preferably, in one possible implementation of the first aspect, the logical relationship verification process includes:

[0031] Parse the set of hardware configuration parameters to be verified and extract the oscillator control word and power amplifier bias voltage control code.

[0032] Based on the oscillator control word, the effective range of the power amplifier bias voltage allowed at the current operating frequency is retrieved from the pre-stored logic verification rules.

[0033] Determine whether the voltage value corresponding to the power amplifier bias voltage control code is within the valid range; if it is within the valid range, the verification passes, and the logic of this group of hardware configuration parameters is determined to be consistent; if it is not within the valid range, the verification fails.

[0034] Preferably, in one possible implementation of the first aspect, the logical relationship verification process further includes a processing step for when the verification fails;

[0035] When the system determines that the voltage value corresponding to the power amplifier bias voltage control code is not within the valid range, it marks the oscillator control word and the power amplifier bias voltage control code as an abnormal parameter pair and generates a verification failure flag.

[0036] At the same time, the transmission process of the abnormal parameter to subsequent modules is blocked, and a feedback signal containing the abnormal identifier and specific over-limit information is returned to the host computer.

[0037] Preferably, in one possible implementation of the first aspect, the consistency comparison process includes:

[0038] After sending the set of hardware configuration parameters to the waveform generation and power drive module, the oscillation frequency status register value of the waveform generation module is read, and the output voltage sample value of the power drive module is read.

[0039] The first relative deviation is calculated by comparing the read oscillation frequency status register value with the target frequency value corresponding to the oscillator control word in the hardware configuration parameter set; the second relative deviation is calculated by comparing the read output voltage sample value with the target voltage value corresponding to the power amplifier bias voltage control code in the hardware configuration parameter set.

[0040] The consistency comparison is considered successful only when both the first relative deviation and the second relative deviation are less than their respective preset deviation thresholds.

[0041] Preferably, in one possible implementation of the first aspect, the consistency comparison process is performed using statistical values ​​within a sliding time window:

[0042] Within a preset time window, the oscillation frequency state register value and the output voltage sample value are sampled multiple times to form an instantaneous value sequence.

[0043] Calculate the statistical characteristic values ​​of the instantaneous value sequences respectively;

[0044] The statistical feature values ​​are compared with the corresponding target parameter values ​​in the hardware configuration parameter set, and the consistency is judged based on the preset statistical deviation threshold.

[0045] In a second aspect, the present invention provides a data consistency control system for a shortwave therapy device, the system being used to implement a data consistency control method for a shortwave therapy device as described in the first aspect, comprising:

[0046] Parameter receiving module: Receives the set of target treatment parameters sent by the host computer, wherein the set of target treatment parameters includes at least the operating frequency and output power;

[0047] Parameter mapping module: Based on the pre-stored mapping relationship table, dynamically maps each parameter in the target treatment parameter set to the corresponding hardware configuration parameter set. The hardware configuration parameter set includes the oscillator control word and the power amplifier bias voltage control code.

[0048] Logic verification module: Based on the circuit physical characteristics of the shortwave therapy device, establish logic verification rules between hardware configuration parameters, and after generating the hardware configuration parameter set, call the logic verification rules to verify the logical relationship between the oscillator control word and the power amplifier bias voltage control code. When the verification passes, it is determined that the data logic is consistent.

[0049] Comparison and verification module: After the logic verification is passed, the hardware configuration parameter set is sent to the waveform generation circuit and the power drive circuit; the oscillation frequency status register value of the waveform generation circuit and the output voltage sample value of the power drive circuit are read in real time; the read oscillation frequency status register value and output voltage sample value are compared with the corresponding execution parameters in the hardware configuration parameter set.

[0050] Output control module: Triggers parameter loading and output control signals only when the consistency comparison passes.

[0051] The beneficial effects of this invention are as follows: This invention ensures the synchronization of the treatment parameters of the shortwave therapy device with the hardware configuration through a triple mechanism of dynamic mapping, logical verification and consistency comparison, thereby improving the accuracy and safety of treatment.

[0052] Dynamic mapping takes into account the nonlinear characteristics of hardware, making parameter conversion more realistic; logic verification is built based on the physical characteristics of the circuit to prevent unreasonable configurations in advance; and the real-time monitoring and comparison mechanism continuously verifies during the parameter execution stage to ensure that the treatment energy is output according to the preset parameters.

[0053] In addition, the runtime parameter feedback mechanism supports dynamic calibration and optimization, further improving the system's adaptability and long-term stability, and providing solid technical support for the shortwave therapy device. Attached Figure Description

[0054] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0055] Figure 1 This application provides a flowchart of a data consistency control method for a shortwave therapy device. Detailed Implementation

[0056] 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 some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0057] Example 1: As Figure 1 As shown, the present invention provides a data consistency control method for a shortwave therapy device, comprising:

[0058] Step S1: Receive the set of target treatment parameters sent by the host computer, wherein the set of target treatment parameters includes at least the operating frequency and output power.

[0059] In this embodiment, the host computer and the main control system of the shortwave therapy device exchange data via a standard communication interface, including UART, SPI, CAN, or USB. The target treatment parameter set is transmitted from the host computer to the main control system's receive buffer in the form of structured data frames. Each data frame includes a frame start identifier, a parameter data area, and a frame check sequence. The parameter data area encapsulates the control parameters required for the treatment process, including at least the operating frequency and output power values. The operating frequency defines the energy carrier frequency of the shortwave therapy, while the output power characterizes the intensity of the therapeutic energy.

[0060] Step S2: Based on the pre-stored mapping table, dynamically map each parameter in the target treatment parameter set to the corresponding hardware configuration parameter set. The hardware configuration parameter set includes the oscillator control word and the power amplifier bias voltage control code.

[0061] In this embodiment, the mapping table is a non-linear mapping table, established based on the actual physical characteristics of the oscillator and power amplifier in the shortwave therapy device hardware circuit, characterizing the target treatment parameter, i.e., the operating frequency. Output power With the underlying hardware configuration parameters, i.e., the oscillator control word Power amplifier bias voltage control code The nonlinear correspondence between them.

[0062] The nonlinear mapping table was obtained through system calibration experiments. The specific process was as follows: within the entire permissible operating frequency range and output power range of the instrument, a series of discrete operating points were selected. For each discrete operating point, the optimal oscillator control word that enables the therapeutic instrument to achieve its predetermined output performance at that point is determined through instrument measurement and closed-loop feedback debugging. With power amplifier bias voltage control code This mapping relationship is then permanently stored, forming a lookup table containing multiple discrete entries. During system runtime, the parameter mapping module receives a table containing the target operating frequency. With target output power The parameter set. The dynamic mapping process first queries this nonlinear mapping table to determine the target parameter pair. Is it related to a discrete working point stored in the table? Exact match. If a match is found, the hardware configuration parameters corresponding to that discrete point are directly applied. As output, if the target parameter pair lies within the rectangular region formed by any four discrete operating points in the table, then the corresponding hardware configuration parameters are calculated using a bilinear interpolation algorithm. Specifically, in the two-dimensional parameter space composed of discrete points, the target point is located... A rectangular region, the four vertices of which are , , , Obtain the oscillator control word corresponding to these four vertices. , , , With power amplifier bias voltage control code , , , Bilinear interpolation calculations were performed on the oscillator control word and the bias voltage control code, respectively. For the oscillator control word, its target value... It is given by the following formula:

[0063]

[0064] Among them, interpolation coefficients , For the power amplifier bias voltage control code, its target value is... Using the same formula and interpolation coefficients , Perform the calculation.

[0065] Step S3: Based on the circuit physical characteristics of the shortwave therapy device, establish logical verification rules between hardware configuration parameters. After generating the hardware configuration parameter set, call the logical verification rules to verify the logical relationship between the oscillator control word and the power amplifier bias voltage control code. When the verification passes, determine that the data logic is consistent.

[0066] In this embodiment, the logic verification rules are established based on the impedance matching principle of the shortwave therapy device's transmission channel and the physical constraint relationship between the oscillator frequency and the power amplifier.

[0067] First, a theoretical model is constructed. The model establishment process is as follows: Based on the circuit structure of the shortwave therapy device's transmission channel, this structure includes an oscillator that generates high-frequency signals, an impedance matching network for transmission and matching, a power amplifier for power amplification, and a treatment load as the terminal. Its high-frequency equivalent circuit model is then established, including the output impedance of the oscillation source. Impedance matching networks Parameter matrix, input and output impedance characteristics of power amplifier transistors and its nonlinear transconductance properties and the equivalent impedance of the load. .

[0068] Based on the equivalent circuit model, the analysis is performed at different operating frequencies. Below, due to the frequency response characteristics of the impedance matching network, the therapeutic load impedance... The equivalent load impedance presented at the output of the power amplifier after reflection by the impedance matching network. The equivalent load impedance is the frequency. The function, whose calculation formula involves the network Parameters and load impedance calculations are performed. Then, based on the operating characteristics of the power amplifier, its output power is determined. ,efficiency With bias voltage Equivalent load impedance and input drive power A mathematical model of the relationship between them.

[0069] Mathematical relational models are expressed as a system of equations and ,in This is the fundamental component of the collector current of the power amplifier transistor. To be related to the bias voltage and input voltage amplitude Related transconductance, This represents the real part of the equivalent load impedance.

[0070] For a given target output power and operating frequency Under the premise of ensuring that the power amplifier operates in the safe area and meets the requirements of linearity and efficiency, its bias voltage Allowed range of valid values The lower limit of this range Ensure the power amplifier can be turned on and provide at least [amount missing]. The output power, upper limit Then, the maximum allowable collector-emitter voltage of the power amplifier transistor is used. Maximum power dissipation The boundaries of the safe working area, which are set up to prevent thermal breakdown, are jointly determined.

[0071] Using a theoretical model, all discrete operating points in the system calibration experiment were analyzed. Calculate and record the corresponding effective bias voltage range. Ultimately, the operating frequency will be... Target output power The calculated effective voltage range is associated with a logical verification rule table, which is then stored in the system's non-volatile memory.

[0072] After generating the hardware configuration parameter set, logical relationship verification is performed by invoking logical verification rules. The verification process specifically includes: parsing the hardware configuration parameter set to be verified and extracting the power amplifier bias voltage control code. The logic verification module receives the original set of target treatment parameters from the parameter receiving module. .

[0073] by The system uses an index to query a pre-stored logical verification rule table. Since the target point may not completely coincide with the discrete points in the rule table, the system employs a bilinear interpolation algorithm consistent with the parameter mapping module, based on the nearest discrete frequency power points in the rule table. , , , Stored effective voltage range boundary values Equal to Then, interpolation calculations are performed on the lower and upper limits of the effective voltage range to obtain the current target operating point. The effective range of the power amplifier bias voltage allowed below The interpolation formula is consistent with the formula in the parameter mapping. Next, the power amplifier bias voltage control code is... The conversion relationship of the digital-to-analog converter is used to analyze the corresponding actual voltage setpoint. Determine whether the voltage value satisfies the inequality: If the inequality is true, the check passes, the hardware configuration parameters are logically consistent, and the process continues. If the inequality is false, i.e. or If not, the verification will fail.

[0074] When the logical relationship verification fails, the system executes preset error handling procedures. The system then processes the set of oscillator control words. With power amplifier bias voltage control code The system marks the abnormal parameter pair and sets a dedicated verification failure flag in the system status register. Simultaneously, the system actively blocks the transmission of this abnormal parameter pair to the subsequent waveform generation and power drive circuits, ensuring that unreasonable configuration parameters are not loaded and executed, thus protecting the hardware circuitry. While implementing the blocking, the system returns a structured feedback signal to the host computer via the communication interface. This feedback signal includes the abnormal event identifier, specific out-of-limit direction information, and the original parameter pair that triggered the abnormality. and its parsed and the calculated effective voltage range , along with a timestamp.

[0075] Step S4: After the logic verification is passed, the hardware configuration parameter set is sent to the waveform generation circuit and the power drive circuit; the oscillation frequency status register value of the waveform generation circuit and the output voltage sample value of the power drive circuit are read in real time; the read oscillation frequency status register value and output voltage sample value are compared with the corresponding parameters to be executed in the hardware configuration parameter set.

[0076] In this embodiment, after the logic verification passes, the hardware configuration parameter set is synchronously sent to the waveform generation circuit and the power drive circuit via a parallel digital interface. Specifically, the oscillator control word is written into the frequency control register of the digitally controlled oscillator in the waveform generation circuit to set the target operating frequency. The power amplifier bias voltage control code is written into the input register of the digital-to-analog converter in the power drive circuit to set the target bias voltage. .

[0077] After the parameters are sent, the system initiates the real-time monitoring and consistency comparison process. First, an instantaneous value comparison is performed. The system obtains the instantaneous measurement value of the actual frequency output by the oscillation circuit by reading the oscillation frequency status register corresponding to the frequency monitoring module integrated within the waveform generation circuit. The frequency status register is driven by a dedicated phase-locked loop and counter circuit, and its value is determined by a pre-stored scaling factor. The frequency value is obtained after conversion, that is ,in The system reads values ​​from the registers. Simultaneously, it uses an analog-to-digital converter to sample the voltage divider points in the power amplifier power supply circuit of the power drive circuit in real time, obtaining the instantaneous sampled value of the actual operating voltage of the power amplifier. The sampled value is converted using pre-stored conversion coefficients. Converted to voltage value, i.e. ,in This is the output code value of the analog-to-digital converter.

[0078] The system will read the actual value , The actual oscillation frequency is calculated by comparing it with the target parameters in the set of hardware configuration parameters to be executed. With the target frequency setting value The first relative deviation between The calculation formula is: Calculate the actual sampled voltage. With the target voltage set value The second relative deviation between The calculation formula is: The system has a preset first deviation threshold. With the second deviation threshold Only if both conditions are met. With conditions At that time, the instantaneous value consistency comparison is deemed successful.

[0079] To improve anti-interference capability and robustness of judgment, statistical value comparison based on a sliding time window is performed synchronously. A sliding time window of fixed length is set. Within this time window, at a fixed sampling period... The oscillation frequency status register value and the output voltage sample value are sampled multiple times consecutively to form a data structure containing... Instantaneous frequency value sequence of sampling points With instantaneous voltage value sequence ,in .

[0080] Subsequently, the statistical characteristic values ​​of the two instantaneous value sequences are calculated separately. For the frequency sequence... Calculate its statistical average. with sample standard deviation Statistical mean The calculation formula is Sample standard deviation The calculation formula is For voltage sequences The statistical average is calculated using the same formula. with sample standard deviation .

[0081] The system compares the calculated statistical feature values ​​with the target parameter values. First, it calculates the frequency statistical average. With target frequency Compare and calculate the average frequency deviation. , Statistical average of voltage With target voltage Compare and calculate the average voltage deviation. , The system has a preset average frequency deviation threshold. Average voltage deviation threshold Frequency standard deviation threshold and voltage standard deviation threshold The criteria for passing the statistical consistency comparison based on the sliding time window are that the following four inequalities must be satisfied simultaneously: ,and ,and ,and The system determines that a consistency comparison passes if both the instantaneous value comparison and the statistical value comparison based on the sliding time window are met simultaneously.

[0082] Step S5: Trigger parameter loading and output control signals only when the consistency comparison passes.

[0083] In this embodiment, the global consistency flag position within the system is valid only when both the instantaneous value comparison condition and the statistical value comparison condition are met.

[0084] At this time, the main control system generates a high-level load enable pulse signal, which is synchronously sent to the parameter latch registers of the waveform generation circuit and the power drive circuit via the control bus. The rising edge of the load enable pulse latches the oscillator control word and the power amplifier bias voltage control code currently temporarily stored in the input registers of the above circuits into their respective execution registers, completing the loading and activation of the hardware configuration parameters.

[0085] After parameter loading is complete, the system generates a treatment enable signal, which is sent to the RF power switch and modulation circuit to control the output of treatment energy to the load terminal according to the set operating frequency and output power. If either the instantaneous value comparison or statistical value comparison condition is not met, the global consistency flag remains invalid, and the system does not generate a loading enable pulse or treatment enable signal. Simultaneously, the system blocks the current treatment process, records the currently monitored actual frequency value sequence, actual voltage value sequence, calculated deviation values, and target parameter values ​​to the error log in non-volatile memory, and sends a status report containing detailed inconsistency information to the host computer via the communication interface.

[0086] Example 2: The present invention provides a data consistency control method for a shortwave therapy device, which also includes a dynamic calibration and optimization mechanism based on runtime parameter feedback.

[0087] After the consistency comparison passes and the treatment output is triggered, the system enters a continuous runtime monitoring state. At this time, the system not only continuously acquires the oscillation frequency status register value and the output voltage sampling value, but also simultaneously acquires the final output power and waveform purity parameters fed back from the treatment output terminal via the coupler. The system performs correlation analysis with the above runtime monitoring parameters, the target treatment parameter set, and the loaded hardware configuration parameter set to construct a runtime parameter relationship database.

[0088] Based on this database, the system periodically performs parameter optimization. The optimization process includes: analyzing the hardware configuration parameters corresponding to the optimal output performance actually achieved under a specific operating frequency and output power target, and fine-tuning and updating the pre-stored nonlinear mapping relationship table and logic verification rules accordingly.

[0089] Example 3: This invention provides a data consistency control system for a shortwave therapy device, comprising:

[0090] Parameter receiving module: Receives the set of target treatment parameters sent by the host computer, wherein the set of target treatment parameters includes at least the operating frequency and output power;

[0091] Parameter mapping module: Based on the pre-stored mapping relationship table, dynamically maps each parameter in the target treatment parameter set to the corresponding hardware configuration parameter set. The hardware configuration parameter set includes the oscillator control word and the power amplifier bias voltage control code.

[0092] Logic verification module: Based on the circuit physical characteristics of the shortwave therapy device, establish logic verification rules between hardware configuration parameters, and after generating the hardware configuration parameter set, call the logic verification rules to verify the logical relationship between the oscillator control word and the power amplifier bias voltage control code. When the verification passes, it is determined that the data logic is consistent.

[0093] Comparison and verification module: After the logic verification is passed, the hardware configuration parameter set is sent to the waveform generation circuit and the power drive circuit; the oscillation frequency status register value of the waveform generation circuit and the output voltage sample value of the power drive circuit are read in real time; the read oscillation frequency status register value and output voltage sample value are compared with the corresponding execution parameters in the hardware configuration parameter set.

[0094] Output control module: Triggers parameter loading and output control signals only when the consistency comparison passes.

[0095] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A data consistency control method for a shortwave therapy device, characterized in that, include: Step S1: Receive the set of target treatment parameters sent by the host computer, wherein the set of target treatment parameters includes at least the operating frequency and output power; Step S2: Based on the pre-stored mapping relationship table, dynamically map each parameter in the target treatment parameter set to the corresponding hardware configuration parameter set. The hardware configuration parameter set includes the oscillator control word and the power amplifier bias voltage control code. Step S3: Based on the circuit physical characteristics of the shortwave therapy device, establish logical verification rules between hardware configuration parameters. After generating the hardware configuration parameter set, call the logical verification rules to verify the logical relationship between the oscillator control word and the power amplifier bias voltage control code. When the verification passes, determine that the data logic is consistent. Step S4: After the logic verification is passed, the hardware configuration parameter set is sent to the waveform generation circuit and the power drive circuit; the oscillation frequency status register value of the waveform generation circuit and the output voltage sample value of the power drive circuit are read in real time; the read oscillation frequency status register value and output voltage sample value are compared with the corresponding execution parameters in the hardware configuration parameter set. Step S5: Trigger parameter loading and output control signals only when the consistency comparison passes.

2. The data consistency control method for a shortwave therapy device as described in claim 1, characterized in that, The dynamic mapping process includes: Based on the nonlinear characteristics of the hardware circuit of the shortwave therapy device, a nonlinear mapping table is established between the operating frequency, output power and oscillator control word and power amplifier bias voltage control code. The nonlinear mapping table was obtained through calibration experiments and stores the parameter correspondence under discrete operating points; After receiving the set of target treatment parameters, the nonlinear mapping table is queried. If the target parameters match the discrete operating points in the table, the corresponding hardware configuration parameters are directly obtained. If the target parameter is between the discrete operating points in the table, then the oscillator control word and power amplifier bias voltage control code corresponding to the target parameter are generated by interpolation calculation based on the parameters of the nearest discrete operating points.

3. The data consistency control method for a shortwave therapy device as described in claim 2, characterized in that, The interpolation calculation is a bilinear interpolation calculation; Using the target operating frequency and target output power as coordinates, locate the rectangular region in the two-dimensional parameter space formed by the nonlinear mapping table; Obtain the oscillator control word and power amplifier bias voltage control code corresponding to the discrete operating points at the four vertices of the rectangular region; Bilinear interpolation is performed on the oscillator control word and the power amplifier bias voltage control code along the frequency and power dimensions to calculate the set of hardware configuration parameters corresponding to the target parameters.

4. The data consistency control method for a shortwave therapy device as described in claim 1, characterized in that, The process of establishing the logical verification rules includes: A theoretical model is constructed based on the impedance matching principle of the shortwave therapy device's transmission channel and the physical constraint relationship between the oscillator frequency and the power amplifier. Through theoretical modeling, the effective range of power amplifier bias voltage corresponding to the operating frequency set by the oscillator control word is obtained; The correspondence between operating frequency and effective voltage range is fixed and stored to form logical verification rules.

5. The data consistency control method for a shortwave therapy device as described in claim 4, characterized in that, The theoretical model construction process includes: Based on the circuit structure of the shortwave therapy device's transmission channel, an equivalent circuit model including an oscillator, impedance matching network, power amplifier, and load is established. Based on the equivalent circuit model, the equivalent load impedance reflected to the power amplifier output through the impedance matching network is analyzed at different operating frequencies. Based on the operating characteristics of the power amplifier, a mathematical model is established to establish the relationship between output power, efficiency, bias voltage, and equivalent load impedance.

6. The data consistency control method for a shortwave therapy device as described in claim 5, characterized in that, The process of verifying the logical relationship includes: Parse the set of hardware configuration parameters to be verified and extract the oscillator control word and power amplifier bias voltage control code. Based on the oscillator control word, the effective range of the power amplifier bias voltage allowed at the current operating frequency is retrieved from the pre-stored logic verification rules. Determine whether the voltage value corresponding to the power amplifier bias voltage control code is within the valid range; if it is within the valid range, the verification passes, and the logic of this group of hardware configuration parameters is determined to be consistent; if it is not within the valid range, the verification fails.

7. The data consistency control method for a shortwave therapy device as described in claim 6, characterized in that, The logical relationship verification process also includes a handling step when the verification fails; When the system determines that the voltage value corresponding to the power amplifier bias voltage control code is not within the valid range, it marks the oscillator control word and the power amplifier bias voltage control code as an abnormal parameter pair and generates a verification failure flag. At the same time, the transmission process of the abnormal parameter to subsequent modules is blocked, and a feedback signal containing the abnormal identifier and specific over-limit information is returned to the host computer.

8. The data consistency control method for a shortwave therapy device as described in claim 1, characterized in that, The consistency comparison process includes: After sending the set of hardware configuration parameters to the waveform generation and power drive module, the oscillation frequency status register value of the waveform generation module is read, and the output voltage sample value of the power drive module is read. The first relative deviation is calculated by comparing the read oscillation frequency status register value with the target frequency value corresponding to the oscillator control word in the hardware configuration parameter set; the second relative deviation is calculated by comparing the read output voltage sample value with the target voltage value corresponding to the power amplifier bias voltage control code in the hardware configuration parameter set. The consistency comparison is considered successful only when both the first relative deviation and the second relative deviation are less than their respective preset deviation thresholds.

9. The data consistency control method for a shortwave therapy device as described in claim 8, characterized in that, The consistency comparison process uses statistical values ​​within a sliding time window: Within a preset time window, the oscillation frequency state register value and the output voltage sample value are sampled multiple times to form an instantaneous value sequence. Calculate the statistical characteristic values ​​of the instantaneous value sequences respectively; The statistical feature values ​​are compared with the corresponding target parameter values ​​in the hardware configuration parameter set, and the consistency is judged based on the preset statistical deviation threshold.

10. A data consistency control system for a shortwave diathermy device, characterized in that, The system is used to implement a data consistency control method for a shortwave therapy device as described in any one of claims 1 to 9, comprising: Parameter receiving module: Receives the set of target treatment parameters sent by the host computer, wherein the set of target treatment parameters includes at least the operating frequency and output power; Parameter mapping module: Based on the pre-stored mapping relationship table, dynamically maps each parameter in the target treatment parameter set to the corresponding hardware configuration parameter set. The hardware configuration parameter set includes the oscillator control word and the power amplifier bias voltage control code. Logic verification module: Based on the circuit physical characteristics of the shortwave therapy device, establish logic verification rules between hardware configuration parameters, and after generating the hardware configuration parameter set, call the logic verification rules to verify the logical relationship between the oscillator control word and the power amplifier bias voltage control code. When the verification passes, it is determined that the data logic is consistent. Comparison and verification module: After the logic verification is passed, the hardware configuration parameter set is sent to the waveform generation circuit and the power drive circuit; the oscillation frequency status register value of the waveform generation circuit and the output voltage sample value of the power drive circuit are read in real time; the read oscillation frequency status register value and output voltage sample value are compared with the corresponding execution parameters in the hardware configuration parameter set. Output control module: Triggers parameter loading and output control signals only when the consistency comparison passes.