Disclosure of Invention
The invention provides a radio frequency control method, a radio frequency control device and a radio frequency source, which can effectively solve the problem of inaccurate output signals in the related technology.
In a first aspect, the present invention provides a radio frequency control method, including:
when fitting curve data exist in synchronous data sent by external equipment, whether an LCD device in a radio frequency source is in a frequency sweeping state is detected;
when the LCD equipment is in a frequency sweeping state, acquiring frequency sweeping data generated by executing frequency sweeping operation of the LCD equipment in the frequency sweeping state;
acquiring a standing-wave ratio minimum frequency point corresponding to a preset bandwidth in the sweep frequency data from the sweep frequency data, and updating the synchronous data according to the standing-wave ratio minimum frequency point;
and adjusting the working parameters of the radio frequency source according to the updated synchronous data, so that the radio frequency source outputs radio frequency signals according to the adjusted working parameters.
Optionally, in the radio frequency control method, when it is detected that the LCD device is not in the frequency sweeping state, the method further includes:
calling a power analog quantity query interface to obtain a target analog quantity;
and adjusting the working parameters of the radio frequency source according to the target analog quantity so that the radio frequency source outputs radio frequency signals according to the adjusted working parameters.
Optionally, in the foregoing radio frequency control method, before performing detecting whether the LCD device is in the frequency sweeping state, the method further includes:
detecting whether a set number of target output sampling values in power output sampling values of a radio frequency source in a preset time length are larger than a sampling threshold value;
if the target output sampling value exists, an interface of the automatic curve data positive determination library is called according to the target output sampling value, and synchronous data sent by external equipment is received through the interface.
Optionally, in the radio frequency control method, the step of detecting whether a set number of target output sample values in the power output sample values of the radio frequency source in a preset time period is greater than a sampling threshold includes:
and detecting whether a set number of target output sampling values in the power output sampling values of the radio frequency source in a preset time length are greater than a sampling threshold value by using a pulse sampling algorithm.
Optionally, in the foregoing radio frequency control method, before performing detecting whether the LCD device is in the frequency sweeping state, the method further includes:
sending a state adjusting signal to the plug-in control unit, wherein the state adjusting signal is used for indicating the plug-in control unit to adjust the working state;
and when a feedback signal fed back by the target plug-in control unit is received within a preset time, setting a flag bit corresponding to the target plug-in control unit as a first identifier.
Optionally, in the radio frequency control method, the step of adjusting the operating parameter of the radio frequency source according to the updated synchronization data includes:
and acquiring temperature sampling data of the power supply case, the radio frequency output port and the control case according to the updated synchronous data, and adjusting working parameters of the radio frequency source according to the temperature sampling data.
Optionally, in the radio frequency control method, the method further includes:
acquiring an output detection signal generated when the radio frequency source outputs a radio frequency signal according to the adjusted working parameter and a feedback signal obtained after the detection signal is accelerated by an accelerator in the radio frequency source;
and detecting the feedback signal and the detection signal by using a phase detection algorithm to obtain a phase difference.
Another embodiment of the present application further provides a radio frequency control apparatus, applied to a controller in a radio frequency source, the apparatus including:
the detection module is used for detecting whether the LCD equipment in the radio frequency source is in a frequency sweeping state or not when the fitting curve data exists in the synchronous data sent by the external equipment;
the acquisition module is used for acquiring sweep frequency data generated by the LCD equipment executing sweep frequency operation in a sweep frequency state when the LCD equipment is in the sweep frequency state;
the updating module is used for acquiring the minimum frequency point of the standing-wave ratio corresponding to the preset bandwidth in the frequency sweeping data from the frequency sweeping data and updating the synchronous data according to the minimum frequency point of the standing-wave ratio;
and the adjusting module is used for adjusting the working parameters of the radio frequency source according to the updated synchronous data so that the radio frequency source outputs radio frequency signals according to the adjusted working parameters.
Yet another embodiment of the present application further provides an rf source, including:
one or more controllers;
a memory;
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more controllers, the one or more programs configured to perform the methods as described above.
Optionally, in the radio frequency source, the radio frequency source further includes an amplifier and an LCD device, and the amplifier and the LCD device are respectively connected to the controller.
According to the radio frequency control method, the radio frequency control device and the radio frequency source, whether the LCD equipment in the radio frequency source is in a frequency sweeping state is detected when fitting curve data exist in synchronous data sent by external equipment; when the LCD equipment is in a frequency sweeping state, acquiring frequency sweeping data generated by executing frequency sweeping operation of the LCD equipment in the frequency sweeping state; acquiring a standing-wave ratio minimum frequency point corresponding to a preset bandwidth in the sweep frequency data from the sweep frequency data, and updating the synchronous data according to the standing-wave ratio minimum frequency point; and adjusting the working parameters of the radio frequency source according to the updated synchronous data, so that the radio frequency source outputs radio frequency signals according to the adjusted working parameters. By the method, the accuracy of the radio frequency signal output by the radio frequency source can be effectively improved.
Detailed Description
The following detailed description of the embodiments of the present invention will be provided with reference to the accompanying drawings and examples, so that how to apply the technical means to solve the technical problems and achieve the corresponding technical effects can be fully understood and implemented. The embodiments and the features of the embodiments can be combined without conflict, and the technical solutions formed are all within the scope of the present invention.
Additionally, the steps illustrated in the flow charts of the figures may be performed in a computer such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
First embodiment
Referring to fig. 1, the present embodiment provides a radio frequency control method, which can be applied to a controller in a radio frequency source, and the radio frequency control method includes:
step S110: and when the fitting curve data exists in the synchronous data sent by the external equipment, detecting whether the LCD equipment in the radio frequency source is in a frequency sweeping state.
Wherein the external device may be a server, a terminal, or the like associated with the radio frequency source and used for synchronizing data to the radio frequency source. Specifically, the controller must first determine whether sampled data (rf synchronization data) is collected for normal operation, and if not, the system needs to sample again when the expected result of the calculation is "0", and if the system is closed-loop regulation and there is no detection anomaly, there is no fitting data. The system will always run at maximum output and there is a high probability of burning out the equipment. If the system is open loop, a mode of fitting curve data to calculate output quantity is adopted, but no curve fitting data exists in the memory, the output is always '0', and correspondingly, the processor cannot execute subsequent work.
The method for detecting whether the LCD device in the rf source is in the frequency sweeping state may be to obtain the working parameters of the LCD device, and determine whether the LCD device is in the frequency sweeping state according to the working parameters. Or, detecting whether the LCD device outputs the sweep frequency data, and when the LCD device outputs the sweep frequency data, determining that the LCD device is in the sweep frequency state.
Step S120: and when the LCD equipment is in the frequency sweeping state, acquiring frequency sweeping data generated by executing frequency sweeping operation of the LCD equipment in the frequency sweeping state.
Specifically, when the frequency sweeping operation is executed by the LCD device, whether the frequency sweeping is finished or not is judged, and when the frequency sweeping operation is not finished, whether the frequency sweeping needs to be switched or not is determined, and when the frequency sweeping needs to be switched, the output of a DAC (a device for converting a digital signal into an analog signal) in the LCD device is set, so that the sampling processing frequency of an ADC (analog-to-digital converter) in the LCD device is adjusted, and in the frequency sweeping process, all frequency points and the minimum standing-wave ratio corresponding to each frequency point are recorded until a target frequency point is obtained, and the frequency sweeping operation is completed.
The obtained sweep frequency data comprises a plurality of frequency points and the minimum standing-wave ratio corresponding to each frequency point.
Step S130: and acquiring a standing-wave ratio minimum frequency point corresponding to a preset bandwidth in the sweep frequency data from the sweep frequency data, and updating the synchronous data according to the standing-wave ratio minimum frequency point.
The method for updating the synchronization data according to the minimum frequency point of the standing-wave ratio may specifically be to acquire a frequency sweep frequency corresponding to the minimum frequency point of the standing-wave ratio, and update the synchronization data according to the frequency sweep frequency. Or adjusting fitting curve data in the synchronous updating data according to the minimum frequency point of the standing-wave ratio. The setting is performed according to actual requirements, and is not particularly limited herein.
Step S140: and adjusting the working parameters of the radio frequency source according to the updated synchronous data, so that the radio frequency source outputs radio frequency signals according to the adjusted working parameters.
The adjusting of the operating parameter of the radio frequency source according to the updated synchronization data may be adjusting at least one of a power supply, a voltage of the radio frequency source, and a frequency of a signal transmitted by the radio frequency source according to the updated synchronization data.
Or the temperature sampling data of the power supply case, the radio frequency output port and the control case can be obtained according to the updated synchronous data, and the working parameters of the radio frequency source can be adjusted according to the temperature sampling data.
By adopting the method, the working parameters of the radio frequency source are updated according to the frequency sweeping data when the LCD equipment in the radio frequency source is in the frequency sweeping state, so that the accuracy of the signals transmitted by the radio frequency source is improved.
Wherein, the radio frequency source performs the above steps after the initialization is completed. Correspondingly, when the radio frequency source is started, an initialization operation is executed first, wherein the initialization operation specifically is that an initialization program in the radio frequency source utilizes an indicator light of the device as an initialization pipeline indicator. When the indicator lights are on and off, table initialization is complete. The specific initialization items are the address offset of an interrupt vector table used for upgrading and running the application program. The method comprises the steps of interrupt priority grouping, IO configuration initialization, external storage initialization, serial port communication initialization, internet access communication initialization, signal source output initialization, electromagnetic water valve initialization and timer initialization.
After the initialization step is completed, data sampling is performed, the rf source is activated according to the data sampling result after the data sampling is completed, so that the rf source transmits signals, and then the steps S110 to S140 are performed. The specific process of data sampling is as follows: acquiring a required ADC (analog to digital converter) sampling value from a memory of a radio frequency source, detecting whether the ADC sampling value is greater than a preset sampling threshold value, if so, detecting whether the number of times that the sampling value output in the sampling process is kept as a fixed value reaches the preset number of times, if so, determining that the sampling data is valid, calling an interface of an automatic curve data positive definite base to transmit sampling parameters, calculating the forward power, the reverse power and the phase difference of the sampling parameters, and if the ratio of the forward power to the reverse power is greater than a set value (such as 0.75 and 0.8), triggering high-frequency ignition protection and executing the steps S110-S140.
By one approach, before performing detecting whether the LCD device is in a frequency sweep state, the method further comprises: detecting whether a set number of target output sampling values in power output sampling values of a radio frequency source in a preset time length are larger than a sampling threshold value; if the target output sampling value exists, an interface of the automatic curve data positive determination library is called according to the target output sampling value, and synchronous data sent by external equipment is received through the interface.
The step of detecting whether the set number of target output sampling values in the power output sampling values of the radio frequency source in the preset time period is greater than the sampling threshold may specifically be detecting whether the set number of target output sampling values in the power output sampling values of the radio frequency source in the preset time period is greater than the sampling threshold by using a pulse sampling algorithm.
The pulse sampling algorithm specifically performs sampling according to required pulse conditions, and as a mode, a sufficiently long sampling time is given after sampling is started, the number of effective value samplings is counted when the effective value is acquired, and the sampling is stopped when the counting number reaches the number which is specified by us and can acquire the effective value (started by an oscilloscope), and the final sampling value is used as a sampling result. The time consumed by the sampling is not fixed, and the theoretical value is the shortest time consumed by the specified sampling times. The time taken for subtracting the specified number of samples from one signal period is always less than one sample period, so that the speed is almost limited, and compared with the conventional method, it is not necessary to precisely set a sample time greater than 1 signal period.
By one approach, before performing detecting whether the LCD device is in a frequency sweep state, the method further comprises:
sending a state adjusting signal to the plug-in control unit, wherein the state adjusting signal is used for indicating the plug-in control unit to adjust the working state; and when a feedback signal fed back by the target plug-in control unit is received within a preset time, setting a flag bit corresponding to the target plug-in control unit as a first identifier.
The method for sending the state adjustment signal to the plug-in control units may be that a broadcast signal is sent to notify all plug-in control units of adjusting the corresponding working states according to the state adjustment signal in the broadcast signal, and whether a feedback signal fed back by the plug-in control unit is received within a preset time duration is detected, so that whether each plug-in control unit is in a normal working state can be determined, wherein if the feedback signal can be received, the corresponding plug-in control unit can be confirmed to be in a normal state, and if the feedback signal is not received, the corresponding plug-in control unit is not in a normal working state.
Correspondingly, the flag bit corresponding to the target plug-in control unit is set as the first identifier, so that the radio frequency source can communicate with the external device through the target plug-in with the flag bit as the first identifier.
In order to realize that the working parameters of the rf source can be adjusted when the LCD is not in the frequency sweeping state, so as to ensure the accuracy and reliability of the signal output by the rf source, in this embodiment, when it is detected that the LCD device is not in the frequency sweeping state, the method further includes:
calling a power analog quantity query interface to obtain a target analog quantity; and adjusting the working parameters of the radio frequency source according to the target analog quantity so that the radio frequency source outputs radio frequency signals according to the adjusted working parameters.
The adjusting of the operating parameter of the radio frequency source according to the target analog quantity may be adjusting an operating current, a voltage, and a frequency of the output signal of the radio frequency source according to the target analog quantity. Or, the temperature sampling data of the power supply case, the radio frequency output port and the control case are obtained according to the updated synchronous data, and the working parameters of the radio frequency source are adjusted according to the temperature sampling data.
In order to obtain the phase difference of the corresponding rf signal after adjusting the operating parameter of the rf source, in this embodiment, the method further includes:
acquiring an output detection signal generated when the radio frequency source outputs a radio frequency signal according to the adjusted working parameter and a feedback signal obtained by accelerating the detection signal after passing through an accelerator in the radio frequency source; and detecting the feedback signal and the detection signal by using a phase detection algorithm to obtain a phase difference.
Example two
Referring to fig. 2, an embodiment of the present application provides an rf control apparatus, which can be applied to the rf source, and the apparatus includes: a detection module 210, an acquisition module 220, an update module 230, and an adjustment module 240.
The detecting module 210 is configured to detect whether the LCD device in the rf source is in a frequency sweeping state when it is detected that fitting curve data exists in synchronization data sent by the external device.
The obtaining module 220 is configured to obtain frequency sweep data generated by the LCD device executing the frequency sweep operation in the frequency sweep state when the LCD device is in the frequency sweep state.
The updating module 230 is configured to obtain a minimum frequency point of the standing-wave ratio corresponding to a preset bandwidth in the frequency sweep data from the frequency sweep data, and update the synchronization data according to the minimum frequency point of the standing-wave ratio.
The adjusting module 240 is configured to adjust a working parameter of the radio frequency source according to the updated synchronization data, so that the radio frequency source outputs a radio frequency signal according to the adjusted working parameter.
As a mode, the adjusting module may be specifically configured to obtain temperature sampling data of the power supply chassis, the radio frequency output port, and the control chassis according to the updated synchronization data, and adjust a working parameter of the radio frequency source according to the temperature sampling data.
For specific modules of the above modules, reference may be made to the detailed description of steps S110 to S140 in the embodiment, which is not described in detail herein.
As one way, when it is detected that the LCD device is not in the sweep state, the apparatus further includes: the adjusting module is further configured to adjust the working parameters of the radio frequency source according to the target analog quantity, so that the radio frequency source outputs radio frequency signals according to the adjusted working parameters.
As a mode, the apparatus further includes a second invoking module, where the detecting module is further configured to detect whether a set number of target output sampling values exist in the power output sampling values of the radio frequency source within a preset time period and are greater than a sampling threshold; the second calling module is used for calling an interface of the automatic curve data calibration library according to the target output sampling values when the target output sampling values with the set number are larger than the sampling threshold value, and receiving synchronous data sent by external equipment through the interface.
The detection module may be specifically configured to detect whether a set number of target output sampling values in power output sampling values of the radio frequency source within a preset time period is greater than a sampling threshold value by using a pulse sampling algorithm.
As one mode, the apparatus further comprises: the system comprises a signal sending module and a setting module, wherein the signal sending module is used for sending a state adjusting signal to a plug-in control unit, and the state adjusting signal is used for indicating the plug-in control unit to adjust the working state; the setting module is used for setting the flag bit corresponding to the target plug-in control unit as a first identifier when receiving the feedback signal fed back by the target plug-in control unit within the preset time length.
As a mode, the obtaining module is further configured to obtain an output detection signal generated when the radio frequency source outputs the radio frequency signal according to the adjusted working parameter, and a feedback signal obtained after the detection signal is accelerated by an accelerator in the radio frequency source; the detection module is further configured to detect the feedback signal and the detection signal by using a phase detection algorithm to obtain a phase difference.
EXAMPLE III
Embodiments of the present application also provide an rf source comprising one or more controllers, a memory, one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more controllers, the one or more programs configured to perform the method as described in embodiment one.
In one embodiment, the rf source further includes an amplifier and an LCD device, and the amplifier and the LCD device are respectively connected to the controller.
In summary, according to the radio frequency control method, the radio frequency control device and the radio frequency source provided by the embodiment of the present application, when fitting curve data exists in synchronization data sent by external equipment, whether an LCD device in the radio frequency source is in a frequency sweeping state is detected; when the LCD equipment is in a frequency sweeping state, acquiring frequency sweeping data generated by executing frequency sweeping operation of the LCD equipment in the frequency sweeping state; acquiring a standing-wave ratio minimum frequency point corresponding to a preset bandwidth in the sweep frequency data from the sweep frequency data, and updating the synchronous data according to the standing-wave ratio minimum frequency point; and adjusting the working parameters of the radio frequency source according to the updated synchronous data, so that the radio frequency source outputs radio frequency signals according to the adjusted working parameters. By the method, the accuracy of the radio frequency signal output by the radio frequency source can be effectively improved.
In the embodiments provided in the present application, it should be understood that the disclosed method can be implemented in other ways. The embodiments described above are merely illustrative, and the flowcharts and block diagrams in the figures, for example, illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
It should be noted that the above description is only a specific embodiment of the present application, but the above description is only an embodiment adopted for facilitating understanding of the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure, and it is intended that all such changes and modifications as fall within the true spirit and scope of the disclosure be embraced therein. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.