Mass spectrum time sequence control method
Through interpolation timing control and AES encryption mechanism, the accuracy and security issues of mass spectrometer timing control are solved, efficient and safe voltage output is achieved, and the communication efficiency and voltage control accuracy of the mass spectrometer system are improved.
Patent Information
- Application Number
- CN202510577491.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-06
- Publication Date
- 2025-09-16
AI Technical Summary
The timing control methods of existing mass spectrometers have problems such as insufficient accuracy, low data transmission efficiency, and poor security. Especially when the hardware is aging and the data volume is large, it is difficult to ensure the accuracy of voltage output and the security of transmission.
An interpolation timing control method is adopted, and the timing segments are judged and adjusted through FPGA. The data is transmitted in combination with the AES encryption mechanism. The voltage deviation is monitored and dynamically calibrated in real time to ensure the accuracy and security of the timing.
It improves data transmission efficiency and real-time performance, reduces data transmission volume, enhances the security of timing data, ensures the accuracy and consistency of voltage output, and prevents the leakage of core algorithms.
Smart Images

Figure CN120652862A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to mass spectrometry technology, and in particular to a mass spectrometry timing control method. Background Art
[0002] In mass spectrometers, voltage timing control is one of the most critical factors affecting instrument performance. Currently, the most common timing control method is to directly execute the scanned timing data. However, due to instrument age and other factors, timing execution accuracy cannot be guaranteed. Furthermore, the timing method package sent by the host computer contains a large amount of data, which can affect the real-time interaction between the host and slave computers in certain applications. Instrument methods are typically transmitted in plain text, which poses the risk of reverse engineering or technical leakage.
[0003] The existing technical solutions have the following deficiencies: 1. When the system directly executes the issued timing method, due to the limitations of hardware characteristics and service life, there may be certain deviations in the voltage output, making it difficult to accurately achieve the set target value.
[0004] 2. If the timing changes, the entire timing method package needs to be retransmitted, resulting in additional time overhead and transmission resource usage.
[0005] 3. Transmitting time series data in plain text may increase the risk of instrument algorithms being reverse-engineered, leading to the leakage of core technologies or the replacement of key components with non-original components. Summary of the Invention
[0006] In order to solve the deficiencies in the above-mentioned prior art solutions, the present invention provides a mass spectrometry timing control method.
[0007] The purpose of the present invention is achieved through the following technical solutions: A mass spectrometry timing control method comprises the following steps: (A1) editing a voltage timing sequence and sending it to the FPGA, wherein the voltage timing sequence has a mark; (A2) FPGA determines whether the current timing is an interpolation timing; If the answer is yes, go to step (A3); If the answer is no, go to step (A4); (A3) searching for a timing segment in the RAM that has the same signature as the current interpolation timing segment, and replacing the target value in the timing segment with the target value of the current interpolation timing segment, and proceeding to step (A4); (A4) starting a time sequence operation, monitoring the voltage change of each electrode, obtaining the difference between the actual voltage value of the electrode and the voltage value of the time sequence, and comparing the difference with a first threshold value; If the difference is not less than the first threshold, proceed to step (A5); (A5) Dynamically adjust the timing of the current operation according to the difference, and synchronize the adjusted voltage value to the timing of the current operation in the RAM.
[0008] Compared with the prior art, the present invention has the following beneficial effects: 1. Dynamic delivery of interpolated timing: Adopting an incremental data transmission strategy, only specific interpolated timing segments are updated, significantly reducing the amount of data transmitted and improving the communication efficiency, real-time performance, and flexibility of the system.
[0009] 2. Encrypted transmission of time-series segments: An AES-based data encryption mechanism is introduced to ensure the security of time-series segments during transmission, preventing data from being intercepted, tampered with, or forged, thereby effectively protecting the integrity and confidentiality of the core algorithms and time-series data of the mass spectrometry system.
[0010] 3. Adaptive error compensation: During timing operation, the system monitors the electrode voltage in real time and uses dynamic calibration technology to adaptively adjust the deviation, eliminating voltage errors caused by hardware characteristics and ensuring the accuracy and consistency of timing execution. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. Those skilled in the art will readily appreciate that these drawings are merely used to illustrate the technical solutions of the present invention and are not intended to limit the scope of protection of the present invention. Figure 1 1 is a flow chart of the mass spectrometry timing control method according to the present invention. DETAILED DESCRIPTION
[0012] Figure 1 The following description describes optional embodiments of the present invention to teach those skilled in the art how to implement and reproduce the present invention. In order to teach the technical solution of the present invention, some conventional aspects have been simplified or omitted. Those skilled in the art will understand that variations or substitutions derived from these embodiments will be within the scope of the present invention. Those skilled in the art will understand that the following features can be combined in various ways to form multiple variations of the present invention. Thus, the present invention is not limited to the following optional embodiments, but is limited only by the claims and their equivalents.
[0013] Example 1.
[0014] A mass spectrometry timing control method of this embodiment is as follows: Figure 1 As shown, the steps include: (A1) Edit the voltage timing and send it to the FPGA. The voltage timing has a tag.
[0015] (A2) FPGA determines whether the current timing is an interpolation timing.
[0016] If the answer is yes, go to step (A3).
[0017] If the answer is no, go to step (A4).
[0018] (A3) Search the RAM for a timing segment with the same tag as the current interpolation timing, and replace the target value in the timing segment with the target value of the current interpolation timing, and enter step (A4).
[0019] (A4) Starting the time sequence operation, monitoring the voltage change of each electrode, obtaining the difference between the actual voltage value of the electrode and the voltage value of the time sequence, and comparing the difference with the first threshold value.
[0020] If the difference is not less than the first threshold, proceed to step (A5).
[0021] (A5) Dynamically adjust the timing of the current operation according to the difference, and synchronize the adjusted voltage value to the timing of the current operation in the RAM.
[0022] In order to ensure that the parameters of the timing comply with the preset rules, further, the mass spectrometry timing control method according to claim 1 is characterized in that, in step (A1), the timing is checked for legitimacy and sent to the FPGA after passing the check.
[0023] In order to prevent data leakage, further, in step (A1), the timing data that passes the legitimacy check is encrypted and then sent to the FPGA.
[0024] In step (A2), the FPGA decrypts the received timing data.
[0025] In order to obtain an accurate first threshold, the first threshold K=k0·(k1+k2); , ; k0 is the initial calibration value, which is set when the system leaves the factory or is initialized as a reference; α is the temperature sensitivity, T is the temperature in degrees Celsius, L is the age of the mass spectrometer, and represents the aging degree of the instrument, β=0.25, γ=50, N is the system noise, and q ref is the calibrated mass, q is the current measured mass, and λ is the sensitivity of the control change.
[0026] In order to ensure the accuracy of the data, further, in step (A2), if the result is yes, it is checked whether the mark of the interpolation time series is legal.
[0027] If the answer is yes, search for the time sequence segment.
[0028] In order to ensure that the difference is not less than the first threshold, in step (A3), during the current sequence operation, if the number of times that the difference is continuously not less than the first threshold reaches a second threshold, step (A4) is entered.
[0029] If the second threshold is not reached, the next sequence is run after the current sequence is finished.
[0030] Example 2.
[0031] An application example of the mass spectrometry timing control method according to embodiment 1 of the present invention.
[0032] In this application example, Figure 1 As shown, the mass spectrometry timing control method includes the following steps: (A1) In the host computer timing editing sequence (normal timing or interpolation timing), the legality of the timing parameters used for input is checked to ensure that the parameters comply with the preset rules. The voltage timing is marked.
[0033] For example, ions travel from the ion source, pass through the multipole, are confined in a certain space for a certain period of time, and then are ejected. This requires that the voltage value and function of each electrode within a cycle be different. For example, all voltages at time t1 serve "transmission," all voltages at time T2 serve "constraint," and all voltages at time t3 serve "ejection." "Transmission," "constraint," and "ejection" are the labels for the current moment. Therefore, the entire sequence containing the labels "transmission," "constraint," and "ejection" is the normal sequence, while the portion containing the labels "transmission," "constraint," and "ejection" is the interpolated sequence.
[0034] After passing the test, the timing data is encrypted using the 128-bit AES encryption algorithm, and the encrypted timing data is sent to the FPGA.
[0035] (A2) FPGA determines whether the current timing is an interpolation timing.
[0036] The judgment rule is: the entire time sequence containing the labels "transfer", "constraint" and "ejection" is the normal time sequence, and the part of the time sequence containing the labels "transfer", "constraint" and "ejection" is the interpolated time sequence.
[0037] If the answer is yes, go to step (A3).
[0038] If the answer is no, the time series data is stored in RAM and the process goes to step (A4).
[0039] (A3) Determine whether the mark of the interpolation time series is legal.
[0040] If the answer is yes, search the RAM for a timing segment with the same signature as the current interpolation timing, and replace the target value in the timing segment with the target value of the current interpolation timing, and proceed to step (A4).
[0041] (A4) Start the time sequence operation, monitor the voltage change of each electrode, obtain the difference between the actual voltage value of the electrode and the voltage value of the time sequence in real time, and compare the difference with the first threshold value K.
[0042] The current ambient temperature is T = 30 ° C, the natural service life of the instrument is 3 years, L = 3, the system noise (which can be considered as the static noise of the electrode) is N = 0.001 V, k0 = 1, α = 0.002, β = 0.25, γ = 50, q ref =600, λ=0.0025, current measured mass number q=300.
[0043] According to K=k0·(k1+k2), , .
[0044] k1=(1.06+0.24+0.05)=1.35, k2=0.32, and the first threshold K=1.67V.
[0045] If the difference is smaller than the first threshold, the current sequence continues to run.
[0046] If the difference is not less than the first threshold, and the number of times the difference is not less than the first threshold continuously reaches the second threshold, the process proceeds to step (A5). The second threshold is 3 based on experience. If it is too small, it may cause a false trigger, and if it is too large, the process may not be triggered.
[0047] If the second threshold is not reached, the next sequence is run after the current sequence is finished.
[0048] (A5) Dynamically adjust the timing of the current operation according to the difference, and synchronize the adjusted voltage value to the timing of the current operation in the RAM to ensure that the timing data of subsequent operations maintains accurate consistency.
Claims
1. A mass spectrometry timing control method comprising the following steps: (A1) editing a voltage timing sequence and sending it to the FPGA, wherein the voltage timing sequence has a mark; (A2) FPGA determines whether the current timing is an interpolation timing; If the answer is yes, go to step (A3); If the answer is no, go to step (A4); (A3) searching for a timing segment in the RAM that has the same signature as the current interpolation timing segment, and replacing the target value in the timing segment with the target value of the current interpolation timing segment, and proceeding to step (A4); (A4) starting a time sequence operation, monitoring the voltage change of each electrode, obtaining the difference between the actual voltage value of the electrode and the voltage value of the time sequence, and comparing the difference with a first threshold value; If the difference is not less than the first threshold, proceed to step (A5); (A5) Dynamically adjust the timing of the current operation according to the difference, and synchronize the adjusted voltage value to the timing of the current operation in the RAM.
2. The mass spectrometry timing control method according to claim 1, characterized in that: In step (A1), the timing is checked for legality and sent to the FPGA if it passes.
3. The mass spectrometry timing control method according to claim 2, characterized in that: In step (A1), the timing data that passes the legality check is encrypted and then sent to the FPGA; In step (A2), the FPGA decrypts the received timing data.
4. The mass spectrometry timing control method according to claim 3, characterized in that: Use the AES encryption algorithm to process time series data.
5. The mass spectrometry timing control method according to claim 1, characterized in that: The first threshold K=k0·(k1+k2); , ; k0 is the initial calibration value, α is the temperature sensitivity, T is the temperature, L is the age of the mass spectrometer, β=0.25, γ=50, N is the system noise, q ref is the calibrated mass, q is the current measured mass, and λ is the sensitivity of the control change.
6. The mass spectrometry timing control method according to claim 5, characterized in that: k0=1,α=0.002,q ref =600, λ=0.0025.
7. The mass spectrometry timing control method according to claim 1, characterized in that: In step (A2), if the result is yes, check whether the label of the interpolation time sequence is legal; If the answer is yes, search for the time sequence segment.
8. The mass spectrometry timing control method according to claim 1, characterized in that: In step (A3), during the current sequential operation, if the number of times the difference is continuously not less than the first threshold reaches a second threshold, proceed to step (A5); If the second threshold is not reached, the next sequence is run after the current sequence is finished.