CN-122018411-A - Data consistency control method and system for shortwave therapeutic apparatus
Abstract
The invention relates to the technical field of medical electronic equipment control, and discloses a data consistency control method and system for a shortwave therapeutic apparatus. The method dynamically maps the target treatment parameters issued by the upper computer into hardware configuration parameters including an oscillator control word and a power amplifier bias voltage control code. And establishing a logic check rule based on the physical characteristics of the circuit to ensure the consistency of data logic among hardware configuration parameters. After the logic verification is passed, the hardware configuration parameters are sent to the related circuits, and the actual execution parameters are read in real time for consistency comparison, and the parameter loading and output control is triggered only when the comparison is passed. The invention effectively improves the treatment accuracy and safety of the shortwave therapeutic apparatus through a dynamic mapping, logic checking and consistency comparison triple mechanism.
Inventors
- ZHU JIJUN
- YUAN GUOQING
- ZHOU YANG
- PAN YINJIE
- LI GEN
Assignees
- 南京华伟医疗设备有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260408
Claims (10)
- 1. A data consistency control method for a short wave therapeutic apparatus, comprising: Step S1, receiving a target treatment parameter set issued by an upper computer, wherein the target treatment parameter set at least comprises working frequency and output power; Step S2, dynamically mapping each parameter in a target treatment parameter set into a corresponding hardware configuration parameter set according to a pre-stored mapping relation table, wherein the hardware configuration parameter set comprises an oscillator control word and a power amplifier bias voltage control code; step S3, based on the circuit physical characteristics of the shortwave therapeutic apparatus, establishing a logic check rule between hardware configuration parameters, calling the logic check rule to check the logic relation between the oscillator control word and the bias voltage control code of the power amplifier after generating a hardware configuration parameter set, and judging that the data logic is consistent when the check is passed; step S4, after the logic verification is passed, the hardware configuration parameter set is sent to the waveform generating circuit and the power driving circuit, the oscillation frequency state register value of the waveform generating circuit and the output voltage sampling value of the power driving circuit are read in real time, and the read oscillation frequency state register value, the output voltage sampling value and the corresponding parameter to be executed in the hardware configuration parameter set are subjected to consistency comparison; and S5, triggering parameter loading and outputting control signals only when the consistency comparison is passed.
- 2. The method for data consistency control for a short wave therapeutic apparatus according to claim 1, the dynamic mapping process is characterized by comprising the following steps: Based on the nonlinear characteristics of a short wave therapeutic apparatus hardware circuit, a nonlinear mapping relation table between the working frequency and the output power, an oscillator control word and a power amplifier bias voltage control code is established; The nonlinear mapping relation table is obtained through a calibration experiment, and the parameter corresponding relation under discrete working points is stored; After receiving the target treatment parameter set, inquiring a nonlinear mapping relation table, and if the target parameter is matched with a discrete working point in the table, directly acquiring a corresponding hardware configuration parameter; if the target parameter is between the discrete working points in the table, generating an oscillator control word and a power amplifier bias voltage control code corresponding to the target parameter through interpolation calculation according to the adjacent discrete working point parameters.
- 3. The method for data consistency control for a short wave therapeutic apparatus according to claim 2, wherein the interpolation calculation is a bilinear interpolation calculation; Positioning a rectangular area where the target working frequency and the target output power are located in a two-dimensional parameter space formed by a nonlinear mapping relation table by taking the target working frequency and the target output power as coordinates; Obtaining oscillator control words and power amplifier bias voltage control codes corresponding to four vertex discrete working points of the rectangular area; and respectively carrying out bilinear interpolation on the oscillator control word and the bias voltage control code of the power amplifier along the frequency and power dimensions, and calculating to obtain a hardware configuration parameter set corresponding to the target parameter.
- 4. The method for data consistency control of a short wave therapeutic apparatus according to claim 1, wherein the logic verification rule establishment process comprises: Based on the impedance matching principle of a transmitting channel of the shortwave therapeutic apparatus and the physical constraint relation between the frequency of the oscillator and the power amplifier, a theoretical model is constructed; obtaining a power amplifier bias voltage effective interval corresponding to the working frequency set by the oscillator control word through a theoretical model; and solidifying and storing the corresponding relation between the working frequency and the effective voltage interval to form a logic check rule.
- 5. The method for data consistency control for a short wave therapeutic apparatus according to claim 4, wherein the theoretical model construction process comprises: based on a circuit structure of a transmitting channel of the shortwave therapeutic apparatus, establishing an equivalent circuit model comprising an oscillator, an impedance matching network, a power amplifier and a load; According to an equivalent circuit model, analyzing equivalent load impedance of the load impedance reflected to the output end of the power amplifier through the impedance matching network under different working frequencies; And establishing a mathematical relation model between output power and efficiency, bias voltage and equivalent load impedance according to the working characteristics of the power amplifier.
- 6. The method for data consistency control for a short wave therapeutic apparatus according to claim 5, the logical relation verification process is characterized by comprising the following steps: Analyzing a hardware configuration parameter set to be checked, and extracting an oscillator control word and a power amplifier bias voltage control code from the hardware configuration parameter set; According to the oscillator control word, inquiring the permitted effective range of the bias voltage of the power amplifier under the current working frequency from a pre-stored logic check rule; Judging whether the voltage value corresponding to the bias voltage control code of the power amplifier is in an effective range, if so, checking to pass, and if not, checking to fail.
- 7. The method for data consistency control for a short wave therapeutic apparatus according to claim 6, wherein the logical relation verification process further includes a processing step of when verification fails; When the voltage value corresponding to the bias voltage control code of the power amplifier is not in the effective range, the system marks the oscillator control word and the bias voltage control code of the power amplifier as an abnormal parameter pair and generates a verification failure mark; meanwhile, the transmission flow of the abnormal parameter to the subsequent module is blocked, and a feedback signal containing an abnormal identifier and specific overrun information is returned to the upper computer.
- 8. The method for data consistency control for a short wave therapeutic apparatus according to claim 1, wherein the consistency comparison process comprises: after the hardware configuration parameter set is sent to the waveform generation and power driving module, reading an oscillation frequency state register value of the waveform generation module and reading an output voltage sampling value of the power driving module; Comparing the read oscillation frequency state register value with a target frequency value corresponding to an oscillator control word in the hardware configuration parameter set, and calculating a first relative deviation; comparing the read output voltage sampling value with a target voltage value corresponding to a power amplifier bias voltage control code in a hardware configuration parameter set, and calculating a second relative deviation; And judging that the consistency comparison passes only when the first relative deviation and the second relative deviation are smaller than the corresponding preset deviation threshold value.
- 9. The method for data consistency control for a short wave therapeutic apparatus according to claim 8, wherein the consistency comparison process is performed using statistical values within a sliding time window: Continuously sampling the oscillation frequency state register value and the output voltage sampling value for a plurality of times in a preset time window to form an instantaneous value sequence; respectively calculating statistical characteristic values of the instantaneous value sequences; And comparing the statistical characteristic value with a corresponding target parameter value in the hardware configuration parameter set, and judging consistency according to a preset statistical deviation threshold value.
- 10. A data consistency control system for a short wave therapeutic apparatus, characterized in that the system is adapted to implement a data consistency control method for a short wave therapeutic apparatus as claimed in any of claims 1 to 9, comprising: the parameter receiving module is used for receiving a target treatment parameter set issued by the upper computer, wherein the target treatment parameter set at least comprises working frequency and output power; the parameter mapping module dynamically maps each parameter in the target treatment parameter set into a corresponding hardware configuration parameter set according to a pre-stored mapping relation table, wherein the hardware configuration parameter set comprises an oscillator control word and a power amplifier bias voltage control code; the logic verification module is used for establishing a logic verification rule between hardware configuration parameters based on the circuit physical characteristics of the shortwave therapeutic apparatus, calling the logic verification rule to carry out logic relation verification on the oscillator control word and the bias voltage control code of the power amplifier after generating a hardware configuration parameter set, and judging that the data logic is consistent when the verification is passed; The comparison and verification module is used for transmitting the hardware configuration parameter set to the waveform generation circuit and the power driving circuit after the logic verification is passed; reading the oscillation frequency state register value of the waveform generating circuit and the output voltage sampling value of the power driving circuit in real time, and comparing the read oscillation frequency state register value, the output voltage sampling value and the corresponding parameters to be executed in the hardware configuration parameter set in a consistent way; and the output control module is used for triggering parameter loading and outputting control signals only when the consistency comparison passes.
Description
Data consistency control method and system for shortwave therapeutic apparatus Technical Field The invention relates to the technical field of medical electronic equipment control, in particular to a data consistency control method and system for a shortwave therapeutic apparatus. Background In the existing shortwave therapeutic apparatus technology, the therapeutic parameters issued by the upper computer are inconsistent with the actual hardware execution parameters often due to nonlinear characteristics, circuit physical constraints and other factors, so that the therapeutic energy output is inaccurate, the curative effect is affected, and even potential risks are caused to patients. The traditional method depends on a fixed mapping table or is simple to check, so that all working scenes are difficult to be covered comprehensively, and especially when parameters are dynamically changed, the data consistency and the treatment safety cannot be effectively ensured. In addition, lack real-time monitoring and feedback mechanism, be difficult to in time block and report to the police when the parameter is unusual, restricted the accurate treatment and the reliability promotion of shortwave therapeutic instrument. Disclosure of Invention Aiming at the technical defects, the invention aims to provide a data consistency control method and a system for a short-wave therapeutic apparatus, which solve the problem of inaccurate treatment caused by inconsistent therapeutic parameters and hardware configuration of the short-wave therapeutic apparatus. In order to solve the technical problems, the invention adopts the following technical scheme: in a first aspect, the present invention provides a data consistency control method for a shortwave therapeutic apparatus, including: Step S1, receiving a target treatment parameter set issued by an upper computer, wherein the target treatment parameter set at least comprises working frequency and output power; Step S2, dynamically mapping each parameter in a target treatment parameter set into a corresponding hardware configuration parameter set according to a pre-stored mapping relation table, wherein the hardware configuration parameter set comprises an oscillator control word and a power amplifier bias voltage control code; step S3, based on the circuit physical characteristics of the shortwave therapeutic apparatus, establishing a logic check rule between hardware configuration parameters, calling the logic check rule to check the logic relation between the oscillator control word and the bias voltage control code of the power amplifier after generating a hardware configuration parameter set, and judging that the data logic is consistent when the check is passed; step S4, after the logic verification is passed, the hardware configuration parameter set is sent to the waveform generating circuit and the power driving circuit, the oscillation frequency state register value of the waveform generating circuit and the output voltage sampling value of the power driving circuit are read in real time, and the read oscillation frequency state register value, the output voltage sampling value and the corresponding parameter to be executed in the hardware configuration parameter set are subjected to consistency comparison; and S5, triggering parameter loading and outputting control signals only when the consistency comparison is passed. Preferably, in a possible implementation manner of the first aspect, the dynamic mapping process includes: Based on the nonlinear characteristics of a short wave therapeutic apparatus hardware circuit, a nonlinear mapping relation table between the working frequency and the output power, an oscillator control word and a power amplifier bias voltage control code is established; The nonlinear mapping relation table is obtained through a calibration experiment, and the parameter corresponding relation under discrete working points is stored; After receiving the target treatment parameter set, inquiring a nonlinear mapping relation table, and if the target parameter is matched with a discrete working point in the table, directly acquiring a corresponding hardware configuration parameter; if the target parameter is between the discrete working points in the table, generating an oscillator control word and a power amplifier bias voltage control code corresponding to the target parameter through interpolation calculation according to the adjacent discrete working point parameters. Preferably, in a possible implementation manner of the first aspect, the interpolation calculation is a bilinear interpolation calculation; Positioning a rectangular area where the target working frequency and the target output power are located in a two-dimensional parameter space formed by a nonlinear mapping relation table by taking the target working frequency and the target output power as coordinates; Obtaining oscillator control words and power amplifier bias voltage control co