Accelerator parameter transmission method and device and electronic equipment

By using a reflective memory mechanism to transmit accelerator parameters between the accelerator and the spectrometer network, the problem of spectrometer data leakage caused by traditional network transmission methods is solved, achieving secure isolation and reliable data transmission.

CN121485960APending Publication Date: 2026-02-06INST OF MODERN PHYSICS CHINESE ACADEMY OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511448449.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-11
Publication Date
2026-02-06

AI Technical Summary

Technical Problem

Traditional network transmission methods pose a security risk of data leakage from spectrometer experiments, especially when the accelerator and spectrometer are on the same network, where external attackers may obtain experimental data through VPN connections.

Method used

A reflective memory mechanism is adopted to write accelerator parameters to a second reflective memory card of the spectrometer network through a first reflective memory card, thereby achieving physically isolated local area network transmission. The integrity and accuracy of the data frame are ensured by a checksum, and erroneous data frames are rewritten to ensure the reliability of data transmission.

Benefits of technology

It achieves secure isolation between the accelerator and spectrometer networks, prevents the leakage of spectrometer experimental data, improves the overall network security, and ensures the reliability and speed of transmission through data verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121485960A_ABST
    Figure CN121485960A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data transmission, and provides an accelerator parameter transmission method and device and electronic equipment, and the method comprises the steps: obtaining each accelerator parameter from an accelerator network, and numbering each accelerator parameter in sequence to obtain a serial number; calculating a check code based on each accelerator parameter and the corresponding serial number, and packaging the corresponding serial number, accelerator parameter and check code into a data frame; writing the data frames corresponding to the accelerator parameters into a first reflection memory card of the accelerator network according to a preset initial address and a serial number sequence; generating a file header, and writing the file header into a specified address position of the first reflective memory card; wherein the first reflective memory card is used for synchronously mapping the file header and each accelerator parameter to the second reflective memory card of the spectrometer network based on a reflective memory mechanism, and the accelerator network and the spectrometer network are different physically isolated local area networks. According to the invention, the accelerator parameter transmission is faster, and the leakage problem of experimental data in the spectrometer is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data transmission technology, and in particular to an accelerator parameter transmission method, apparatus, and electronic device. Background Technology

[0002] With the continuous advancement of science and technology, the beam intensity and energy range of modern high-intensity heavy ion accelerators have been continuously improved, their performance has been constantly enhanced, and the scale of accelerator and spectrometer networks has also grown increasingly large to meet the needs of large-scale accelerator and spectrometer experiments. Among them, the spectrometer is a terminal device used to acquire accelerator parameters, process accelerator parameters to obtain experimental results, and display the experimental results at the spectrometer end.

[0003] However, currently, accelerators and spectrometers are located on different segments of the same network. Accelerator parameters are sent to the spectrometer via traditional network transmission methods. These traditional methods may lead to the leakage of experimental data from the spectrometer. For example, the accelerator network may connect to the external network via VPN. Improper operation may result in external attacks, allowing attackers to directly access the spectrometer through the network and obtain experimental data, posing a security risk of data leakage. Summary of the Invention

[0004] This invention provides an accelerator parameter transmission method, apparatus, and electronic device to solve the technical problem of experimental data leakage in spectrometers caused by traditional network transmission methods in the prior art.

[0005] This invention provides an accelerator parameter transmission method, applied to the first industrial control computer in an accelerator network, the method comprising the following steps: The parameters of each accelerator are obtained from the accelerator network and numbered sequentially to form the sequence number of each accelerator parameter. The first checksum is calculated based on the parameters of each accelerator and their corresponding serial numbers, and the corresponding serial numbers, accelerator parameters and the first checksum are packaged into a data frame. The data frames corresponding to each accelerator parameter are written into the first reflection memory card of the accelerator network in order of preset start address and sequence number. A file header is generated and written to a specified address location on the first reflective memory card. The file header records the preset starting address and the data length and address offset of each data frame in storage order. The first reflective memory card is used to synchronously map the file header and each data frame to the second reflective memory card of the spectrometer network based on the reflective memory mechanism. This allows the second industrial control computer of the spectrometer network to read the file header from the second reflective memory card, read each data frame according to the file header, perform data verification on the accelerator parameters in the data frames, and write the verification results into a specific address space in the second reflective memory card and map them to the corresponding specific address space of the first reflective memory card. The accelerator network and the spectrometer network are different physically isolated local area networks. The verification result is obtained from a specific address space in the first reflective memory card. If the verification result is a verification failure, the data frame corresponding to the serial number in the verification result is rewritten to the first reflective memory card and remapped to the second reflective memory card.

[0006] According to the present invention, an accelerator parameter transmission method is provided to obtain various accelerator parameters from an accelerator network, including: Access the parameter publishing servers in the accelerator network; The process variables representing the accelerator parameters published in the parameter publishing server are read to obtain the accelerator parameters.

[0007] According to an accelerator parameter transmission method provided by the present invention, data frames corresponding to each accelerator parameter are written into a first reflection memory card of an accelerator network in order of preset start address and sequence number, including: The data length of each data frame is determined based on the data type of each accelerator parameter. Based on the preset starting address, the data length of each data frame, and the order of each sequence number, determine the address offset corresponding to each data frame; The address space of each data frame in the first reflective memory card is determined based on the preset starting address, the data length of each data frame, and the address offset. Each data frame is written to its corresponding address space.

[0008] According to an accelerator parameter transmission method provided by the present invention, the address offset corresponding to each data frame is determined based on the preset starting address, the data length of each data frame, and the order of each sequence number, including: For any data frame, the address offset of any data frame is obtained by accumulating the data lengths of all data frames preceding the data frame in the storage order.

[0009] According to the accelerator parameter transmission method provided by the present invention, the method further includes: while rewriting the data frame corresponding to the sequence number in the verification result to the first reflective memory card and remapping it to the second reflective memory card, counting the number of rewrites of the data frame corresponding to the sequence number, and stopping the retransmission and reporting an error when the number of rewrites reaches a preset rewrite number threshold.

[0010] This invention also provides an accelerator parameter transmission method, applied to a second industrial control computer in a spectrometer network, the method comprising the following steps: Read the file header at a specified address in the second reflection memory card of the spectrometer network. The file header records a preset starting address and records the data length and address offset of the data frames of each accelerator parameter in the storage order. Based on the preset starting address, data length of each data frame and address offset recorded in the file header, read each data frame in the second reflective memory card; For any read data frame, parse the sequence number, accelerator parameters, and first checksum in the data frame; The second check code is calculated based on the parsed sequence number and accelerator parameters. The second check code is compared with the first check code. If they match, the verification is successful, the parsed accelerator parameters are read, and a verification result indicating successful verification is generated. If they do not match, a verification result indicating failed verification is generated. The verification result indicating failed verification includes the sequence number of the accelerator parameters that failed verification. The verification result is written to a specific address space in the second reflective memory card and mapped to a specific address space in the first reflective memory card of the accelerator network. The verification result of the verification failure is used to instruct the first industrial control computer of the accelerator network to rewrite the data frame corresponding to the serial number into the first reflective memory card and remap it to the second reflective memory card when the serial number is read in the specific address space of the first reflective memory card. The file header and each data frame in the second reflective memory card are obtained by the first reflective memory card of the accelerator network synchronously mapping the file header and each data frame in the first reflective memory card to the second reflective memory card based on the reflective memory mechanism. The accelerator network and the spectrometer network are different physically isolated local area networks.

[0011] According to an accelerator parameter transmission method provided by the present invention, the method reads each data frame in the second reflective memory card based on the preset starting address, the data length of each data frame, and the address offset recorded in the file header, including: The starting address of each data frame is determined based on the preset starting address and the address offset of each data frame. Based on the starting address and data length of each data frame, the address space of each data frame in the second reflective memory card is determined. The corresponding data frames are read from their respective address spaces in the second reflective memory card.

[0012] The present invention also provides an accelerator parameter transmission device, applied to a first industrial control computer in an accelerator network, the device comprising the following modules: The parameter acquisition module is used to obtain the parameters of each accelerator from the accelerator network and number each accelerator parameter in sequence to form the sequence number of each accelerator parameter. The data frame packaging module is used to calculate the first check code based on each accelerator parameter and its corresponding sequence number, and to package the corresponding sequence number, accelerator parameter and first check code into a data frame. The data frame writing module is used to write the data frames corresponding to each accelerator parameter into the first reflection memory card of the accelerator network in order of preset start address and sequence number. A file header writing module is used to generate a file header and write the file header to a specified address location on the first reflective memory card. The file header records the preset starting address and records the data length and address offset of each data frame in storage order. The first reflective memory card is used to synchronously map the file header and each data frame to the second reflective memory card of the spectrometer network based on a reflective memory mechanism. This allows the second industrial control computer of the spectrometer network to read the file header from the second reflective memory card, read each data frame according to the file header, perform data verification on the accelerator parameters in the data frames, and write the verification results into a specific address space in the second reflective memory card and map them to the corresponding specific address space of the first reflective memory card. The accelerator network and the spectrometer network are different physically isolated local area networks. The data frame rewriting module is used to obtain the verification result from a specific address space in the first reflective memory card. If the verification result is a verification failure, the data frame corresponding to the serial number in the verification result is rewritten to the first reflective memory card and remapped to the second reflective memory card.

[0013] The present invention also provides an accelerator parameter transmission device, applied to a second industrial control computer in a spectrometer network, the device comprising the following modules: The file header reading module is used to read the file header at a specified address in the second reflection memory card of the spectrometer network. The file header records a preset starting address and records the data length and address offset of the data frames of each accelerator parameter in the storage order. The data frame reading module is used to read each data frame in the second reflective memory card according to the preset starting address, the data length of each data frame and the address offset recorded in the file header; The data frame parsing module is used to parse the sequence number, accelerator parameters, and first checksum from any read data frame. The verification module is used to calculate a second check code based on the parsed sequence number and accelerator parameters, compare the second check code with the first check code, and if they match, the verification is successful, the parsed accelerator parameters are read, and a verification result indicating successful verification is generated; if they do not match, a verification result indicating failed verification is generated, and the verification result indicating failed verification encapsulates the sequence number of the accelerator parameters that failed verification. The verification result writing module is used to write the verification result into a specific address space in the second reflective memory card and map it to a specific address space in the first reflective memory card of the accelerator network. The verification result of the verification failure is used to instruct the first industrial control computer of the accelerator network to rewrite the data frame corresponding to the serial number into the first reflective memory card and remap it to the second reflective memory card when the serial number is read into the specific address space in the first reflective memory card. The file header and each data frame in the second reflective memory card are obtained by the first reflective memory card of the accelerator network synchronously mapping the file header and each data frame in the first reflective memory card to the second reflective memory card based on the reflective memory mechanism. The accelerator network and the spectrometer network are different physically isolated local area networks.

[0014] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the accelerator parameter transmission method as described above.

[0015] The accelerator parameter transmission method, device, and electronic device provided by this invention transmit data based on a reflective memory mechanism, which can achieve complete memory sharing, making data transmission faster and more convenient. Moreover, since the accelerator network and the spectrometer network are different physically isolated local area networks, as long as the spectrometer network does not write confidential data into the corresponding second reflective memory card during the transmission of accelerator parameters, the leakage of experimental data in the spectrometer can be avoided, thus improving the security of the overall accelerator and spectrometer network. Furthermore, data verification during the transmission process ensures the reliability of data transmission. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in this 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 some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0017] Figure 1 This is one of the flowcharts illustrating the accelerator parameter transmission method provided by the present invention.

[0018] Figure 2 This is a schematic diagram of the reflective memory mechanism in the accelerator parameter transmission method provided by the present invention.

[0019] Figure 3 This is the second flowchart of the accelerator parameter transmission method provided by the present invention.

[0020] Figure 4 This is one of the structural schematic diagrams of the accelerator parameter transmission device provided by the present invention.

[0021] Figure 5 This is the second schematic diagram of the accelerator parameter transmission device provided by the present invention.

[0022] Figure 6 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0024] An embodiment of the accelerator parameter transmission method of the present invention is applied to the first industrial control computer of an accelerator network, such as... Figure 1 As shown, the method includes the following steps S110 to S150.

[0025] Step S110: Obtain the parameters of each accelerator from the accelerator network and number them sequentially to form a sequence number for each accelerator parameter. The accelerator parameters include: beam intensity, beam period, beam extraction time, raw beam profile, beam center position, beam spot size, and particle count. Specifically, the beam intensity is measured by a Direct-Current Transformer (DCCT); the raw beam profile, beam center position, and beam spot size are measured by a strip ionization chamber; the particle count is measured by a dose ionization chamber; and the beam period and beam extraction time are accelerator setting parameters that can be obtained through the EPICS (Experimental Physics and Industrial Control System) server.

[0026] Number each accelerator parameter sequentially to ensure that each accelerator parameter has a unique serial number. For example, you can simply number each accelerator parameter in numerical order, starting with 0.

[0027] Step S120: Calculate the first checksum based on each accelerator parameter and its corresponding sequence number, and package the corresponding sequence number, accelerator parameter, and first checksum into a data frame. The data frame format is: sequence number + accelerator parameter + first checksum. For example, any existing mature checksum algorithm can be used, such as the CRC32 checksum algorithm.

[0028] Step S130: Write the data frames corresponding to each accelerator parameter into the first reflection memory card of the accelerator network according to the preset start address and sequence number. The preset start address is the starting address for storing all data frames, and the storage order is the sequence number corresponding to each accelerator parameter, starting from the preset start address. The preset start address can be set according to actual conditions.

[0029] Step S140: Generate a file header and write it to a specified address location on the first reflective memory card. The file header records the preset starting address and, in storage order, the data length and address offset of each data frame. This specified address location can be set according to actual conditions. The file header is used to guide the second industrial control computer of the spectrometer network to parse the file header, thereby reading each data frame.

[0030] The first reflective memory card is used to synchronously map the file header and each data frame to the second reflective memory card of the spectrometer network based on a reflective memory mechanism. This allows the second industrial control computer of the spectrometer network to read the file header from the second reflective memory card, read each data frame according to the file header, perform data verification on the accelerator parameters in the data frames, and write the verification result into a specific address space in the second reflective memory card, which is then mapped to the corresponding specific address space of the first reflective memory card. The verification result can be in the format of an ACK response frame. The accelerator network and the spectrometer network are different physically isolated local area networks.

[0031] Step S150: Obtain the verification result from a specific address space in the first reflective memory card. If the verification result is a verification failure, rewrite the data frame corresponding to the serial number in the verification result into the first reflective memory card and remap it to the second reflective memory card.

[0032] Due to transient bit flips (such as single-event upsets) in the reflective memory transmission link, data frames may become corrupted during writing / reading due to noise interference, causing changes in the transmitted data frames and resulting in incorrect accelerator parameters being acquired by the spectrometer network. Therefore, it is necessary to generate a first checksum for the accelerator parameters in the accelerator network, and the spectrometer network needs to verify the received data frames and synchronize the verification results to the first reflective memory card via the second reflective memory card.

[0033] In this step, the verification result is obtained from a specific address space in the first reflective memory card. If the verification result is a failure, it indicates a data frame transmission error, requiring the initiation of a rewrite mechanism. This involves rewriting the data frame corresponding to the sequence number in the verification result back into the first reflective memory card and remapping it to the second reflective memory card. This is equivalent to retransmitting the previously erroneous data frame so that the spectrometer network can obtain the correct accelerator parameters. It can be understood that the rewritten data frame can be written to the same location on the first reflective memory card as the original data frame.

[0034] It should be noted that the accelerator parameter transmission method in this embodiment is based on a reflective memory mechanism. Of course, a reflective memory network needs to be constructed before accelerator parameter transmission. For example... Figure 2 As shown, constructing a reflective memory network involves two parts: building a general network and building the reflective memory network itself. Building the general network includes setting up an accelerator network and a spectrometer network, which are different physically isolated local area networks (LANs). Based on the reflective memory mechanism, the two different LANs agree on a designated address location to store the file header. This designated address location is the same address on the reflective memory cards of both LANs. Therefore, the second industrial control computer can read the file header from the designated address location on the second reflective memory card.

[0035] The accelerator network is mainly composed of accelerators, parameter publishing servers, a first industrial control computer, and a first reflective memory card. The first industrial control computer is connected to the first network switch through a network port. The first network switch connects the accelerators, parameter publishing servers, and the first industrial control computer to form the accelerator network.

[0036] The spectrometer network mainly consists of the spectrometer, a second industrial control computer, and a second reflector memory card. The second industrial control computer is connected to a second network switch via a network port. The second network switch then networks the spectrometer and the second industrial control computer to form the spectrometer network. For example, the spectrometer is a low-temperature high-density nuclear material measurement spectrometer (CSR External-target Experiment, CEE).

[0037] The two industrial PCs can also be ordinary PCIe-enabled computers capable of inserting reflective memory cards. Reflective memory cards typically support protocols such as PCIe and PXIe. Insert the two reflective memory cards into the corresponding isolated industrial PCs, and then connect them with fiber optic cables (you can directly connect the two reflective memory cards with a fiber optic cable). This completes the reflective memory network setup. The specific distance between the two industrial PCs depends on the length of the fiber optic cable connecting the reflective memory cards, with a maximum length of 250 meters. In the accelerator spectrometer experiment, a 5-meter fiber optic cable was used. After the reflective memory network is set, set the reflective memory card IDs, as each reflective memory card needs a unique ID to achieve data sharing. For example, set the ID of the first reflective memory card to 0 and the ID of the second reflective memory card to 1, and each industrial PC records the ID of the reflective memory card inserted into it.

[0038] The accelerator parameter transmission method in this embodiment is based on a reflective memory mechanism, enabling complete memory sharing and faster, more convenient data transmission. Furthermore, since the accelerator network and spectrometer network are physically isolated local area networks, as long as the spectrometer network does not write confidential data to the corresponding second reflective memory card during accelerator parameter transmission, the leakage of experimental data from the spectrometer can be avoided, thus improving the overall security of the accelerator and spectrometer networks. Moreover, data verification during transmission ensures the reliability of data transmission.

[0039] In some embodiments, step S110 specifically includes the following steps: Access the parameter publishing servers in the accelerator network.

[0040] The process variables representing the accelerator parameters published in the parameter publishing server are read to obtain the accelerator parameters.

[0041] Specifically, the accelerator network has different parameter publishing servers, each used to publish different accelerator parameters. For example, accelerator parameters are published through process variables (PV variables) defined in EPICS, with each PV variable representing a specific accelerator parameter. The first industrial control computer can quickly obtain the corresponding accelerator parameter by using the IP address, port number, and PV variable name of each parameter publishing server.

[0042] In some embodiments, step S130 specifically includes the following steps: Step S131: Determine the data length of each data frame based on the data type of each accelerator parameter. For different accelerator parameters, the number of bytes occupied by the corresponding sequence number and first checksum in the data frame is fixed. Therefore, the length of the data frame depends on the size of the corresponding accelerator parameter. Specifically, data types include integer, floating-point, and even floating array types. Each type of accelerator parameter has a different data length, meaning it occupies different amounts of memory bytes. Therefore, the data length of data frames packaged from different accelerator parameters is also different. The data length of each data frame is the sum of the number of bytes occupied by the sequence number, the number of bytes occupied by the first checksum, and the number of bytes occupied by the accelerator parameter itself. For example, a sequence number between 0 and 255 occupies 1 byte, the first checksum occupies 4 bytes, and the length of the accelerator parameter itself is the data length of the data frame.

[0043] For example, accelerator parameters include beam intensity, beam center position (two directions, X and Y, equivalent to two parameters), beam size (two directions, X and Y, equivalent to two parameters), beam period, and beam extraction time. Each of these parameters is a single-precision floating-point type. Each accelerator parameter itself occupies 4 bytes of memory, the corresponding sequence number of each accelerator parameter occupies 1 byte, the first checksum occupies 4 bytes, and the data frame of a single-precision floating-point type accelerator parameter is 9 bytes, occupying a total of 63 bytes of memory (beam intensity, beam center position, beam size, beam period, and beam extraction time are five parameters in total. The beam center position and beam size have values ​​in both the X and Y directions, therefore, 9 × 7 = 63 bytes). For example, accelerator parameters also include the beam profile, which is a single-precision floating-point array. Each array contains 48 elements and occupies a total of 384 (48×4×2) bytes of memory (X and Y directions). That is, the data length of the beam profile is 384 bytes. Adding the sequence number (1 byte) and the first checksum (4 bytes), the data length of the data frame corresponding to the beam profile is 389 bytes.

[0044] Step S132: Determine the address offset corresponding to each data frame based on the preset starting address, the data length of each data frame, and the order of each sequence number.

[0045] Specifically, for any given data frame, the address offset of that data frame is obtained by accumulating the data lengths of all preceding data frames in the storage order. For example, if the data length of the original beam profile of the segmented ionization chamber is 384 bytes, and after adding the sequence number and the first checksum, it becomes 389 bytes, then 389 bytes of memory space are required. Therefore, when writing the data frame corresponding to the first accelerator parameter after the original beam profile, the address offset needs to be set to 389 bytes.

[0046] Step S133: Determine the address space of each data frame in the first reflective memory card based on the preset start address, the data length of each data frame, and the address offset. For example: if the preset start address is 0, the address offset of a certain data frame is 96 bytes, and the data length of the data frame is 9 bytes, then the address space of the data frame in the first reflective memory card is the address space of 96~104 bytes.

[0047] Step S134: Write each data frame into its corresponding address space, that is, write the data frames corresponding to each accelerator parameter into the first reflection memory card.

[0048] In this embodiment, the specific address space of each data frame in the first reflection memory card is determined by the preset starting address, the data length of each data frame and the address offset, so as to realize the fast writing of accelerator parameters. The preset starting address, the data length of each data frame and the address offset are recorded in the file header, so that the spectrometer network can quickly read the data frame of each accelerator parameter according to the record in the file header.

[0049] In some embodiments, the accelerator parameter transmission method further includes: while rewriting the data frame corresponding to the serial number in the verification result to the first reflective memory card and remapping it to the second reflective memory card, simultaneously counting the number of rewrites for the data frame corresponding to the serial number; and stopping the rewriting process and reporting an error when the number of rewrites reaches a preset rewrite threshold (e.g., three times). Since the reflective memory card itself may be faulty, resulting in incorrect writing or reading, an error is promptly reported when the number of rewrites reaches the rewrite threshold, prompting manual error checking to avoid continuous repeated writing.

[0050] In some embodiments, the sequence number in the verification result corresponding to a verification failure is determined based on the reading count performed by the second industrial control computer in the spectrometer network when reading data frames, according to the order of the accelerator parameter numbers. Specifically, when the second industrial control computer reads data frames, it performs the reading count according to the order of the accelerator parameter numbers, that is, the reading count for any data frame is the same as the sequence number in that data frame. This ensures that even if the sequence number in the data frame is incorrect during transmission, an accurate sequence number can still be obtained, thus ensuring the correctness of the sequence number in the verification result of a verification failure, and further ensuring that a data frame with the correct sequence number can be rewritten.

[0051] Another embodiment of the accelerator parameter transmission method of the present invention is applied to a second industrial control computer in a spectrometer network, such as... Figure 3 As shown, the method includes the following steps S310 to S350.

[0052] Step S310: Read the file header at a specified address in the second reflection memory card of the spectrometer network. The file header records a preset starting address and records the data length and address offset of the data frames of each accelerator parameter in the storage order. Specifically, the second industrial control computer reads the file header at the specified address in the second reflection memory card.

[0053] It should be noted that although the second reflective memory card and the first reflective memory card are in different physically isolated networks, due to the reflective memory mechanism, logically, the second reflective memory card and the first reflective memory card can be considered as the same memory area for the first industrial control computer and the second industrial control computer.

[0054] Step S320: Read each data frame from the second reflective memory card according to the preset start address, data length of each data frame, and address offset recorded in the file header. For example: if the preset start address is 0, the address offset of a data frame for a certain accelerometer parameter is 96 bytes, and the data length of the data frame for that accelerometer parameter is 9 bytes, then the mapped address space of that accelerometer parameter in the second reflective memory card is the address space from 96 to 104. The data read from the address space from 96 to 104 is the data frame corresponding to that accelerometer parameter.

[0055] Step S330: For any read data frame, parse the sequence number, accelerator parameters and first checksum in the data frame. Specifically, according to the data frame format: sequence number (e.g., 1 byte) + accelerator parameters + first checksum (e.g., 4 bytes), the sequence number, accelerator parameters and first checksum can be parsed from the data frame.

[0056] Step S340: Calculate the second check code based on the parsed sequence number and accelerator parameters, compare the second check code with the first check code. If they match, the verification is successful, read the parsed accelerator parameters, and generate a verification result indicating successful verification. If they do not match, generate a verification result indicating failed verification. The verification result indicating failed verification encapsulates the sequence number of the accelerator parameters that failed verification.

[0057] For example, the verification result can be 1 for success and 0 for failure. When verification is successful, the second industrial control computer reads the parsed accelerator parameters, generates a verification result of 1, and sends the corresponding accelerator parameters to the spectrometer. The spectrometer processes the client data and displays it using the corresponding processing methods for each accelerator parameter, such as EPICS or Web publishing. When verification fails, the generated verification result is 0 along with the corresponding sequence number.

[0058] It is understandable that the same verification algorithm can be preset in the first and second industrial control computers. As long as the transmitted data frames do not change, the second verification code and the first verification code will be the same, that is, the verification is successful.

[0059] Step S350: Write the verification result into a specific address space in the second reflective memory card and map it to a specific address space in the first reflective memory card of the accelerator network to provide feedback to the accelerator network on whether the data transmission was successful. The verification result indicating a failure is used to instruct the first industrial control computer of the accelerator network, if it reads the serial number from the specific address space of the first reflective memory card, to rewrite the data frame corresponding to the serial number into the first reflective memory card and remap it to the second reflective memory card, so that the second industrial control computer can reread the data frame to obtain the correct accelerator parameters.

[0060] The file header and data frames of each accelerator parameter in the second reflective memory card are obtained by the first reflective memory card of the accelerator network synchronously mapping the file header and data frames of each accelerator parameter in the first reflective memory card to the second reflective memory card based on the reflective memory mechanism. The accelerator network and the spectrometer network are different physically isolated local area networks, and the first reflective memory card of the accelerator network and the second reflective memory card of the spectrometer network are directly connected by optical fiber.

[0061] The accelerator parameter transmission method in this embodiment reads the file header at a specified address in the second reflective memory card of the spectrometer network. Based on the preset starting address, data length of each data frame, and address offset recorded in the file header, it reads the data frames of each accelerator parameter in the second reflective memory card. The data frames in the second reflective memory card are synchronously mapped from the first reflective memory card based on the reflective memory mechanism, enabling complete memory sharing and faster, more convenient data transmission. Moreover, since the accelerator network and the spectrometer network are different physically isolated local area networks, as long as the spectrometer network does not write confidential data into the corresponding second reflective memory card during the transmission of accelerator parameters, the leakage of experimental data in the spectrometer can be avoided, improving the security of the accelerator and spectrometer networks as a whole. Furthermore, data verification during transmission ensures the reliability of data transmission.

[0062] In some embodiments, step S320 specifically includes the following steps: Step S321: Determine the starting address of each data frame based on the preset starting address and the address offset of each data frame. This starting address is the starting address of a single data frame. For example, if the preset starting address is 0 and the address offset of a data frame for a certain accelerometer parameter is 96 bytes, then the starting address of the data frame for that accelerometer parameter is 96.

[0063] Step S322: Determine the address space of each data frame in the second reflective memory card based on the starting address and data length of each data frame. For example, if the data length of the accelerometer parameter is 9 bytes, then the address space of the accelerometer parameter in the second reflective memory card is 96-104.

[0064] Step S323: Read the corresponding data frame from the address space of each data frame in the second reflective memory card.

[0065] In this embodiment, the specific address space of each accelerometer parameter in the second reflective memory card is determined by the preset starting address, the data length of each data frame and the address offset, so as to realize the fast reading of the accelerometer parameters.

[0066] In some embodiments, since the data frame includes a sequence number, accelerator parameters, and a first checksum, a failed check may be due to an error in at least one of these three components during transmission. In particular, if the sequence number is incorrect, the correct sequence number cannot be included in the failed check result, leading to subsequent rewrite errors. Therefore, in step S330, when reading the data frame, a read count is performed in the order of the accelerator parameter numbers. That is, for any data frame, the read count is the same as the sequence number in that data frame. If the read count differs from the parsed sequence number, the read count is used as the sequence number of the currently read data frame. In step S340, the read count replaces the parsed sequence number, and a second checksum is calculated using the parsed accelerator parameters. This ensures that even if the sequence number in the data frame is incorrect during transmission, an accurate sequence number can still be obtained, guaranteeing the correctness of the sequence number in the failed check result, and thus ensuring the correct data frame with the correct sequence number is rewritten.

[0067] The accelerator parameter transmission device provided by the present invention is described below. The accelerator parameter transmission device described below can be referred to in correspondence with the accelerator parameter transmission method described above.

[0068] like Figure 4 As shown, the accelerator parameter transmission device of this embodiment of the invention is applied to the first industrial control computer in the accelerator network, and the device includes the following modules 410 to 450.

[0069] The parameter acquisition module 410 is used to acquire each accelerator parameter from the accelerator network and number each accelerator parameter in sequence to form a sequence number for each accelerator parameter.

[0070] The data frame packaging module 420 is used to calculate the first check code based on each accelerator parameter and its corresponding sequence number, and to package the corresponding sequence number, accelerator parameter and first check code into a data frame.

[0071] The data frame writing module 430 is used to write the data frames corresponding to each accelerator parameter into the first reflection memory card of the accelerator network in order of preset start address and sequence number.

[0072] The file header writing module 440 is used to generate a file header and write the file header to a specified address location of the first reflective memory card. The file header records the preset start address and records the data length and address offset of each data frame in storage order. The first reflective memory card is used to synchronously map the file header and each data frame to the second reflective memory card of the spectrometer network based on the reflective memory mechanism, so that the second industrial control computer of the spectrometer network reads the file header from the second reflective memory card, reads each data frame according to the file header, performs data verification on the accelerator parameters in the data frames, and writes the verification result into a specific address space in the second reflective memory card and maps it to the corresponding specific address space of the first reflective memory card. The accelerator network and the spectrometer network are different physically isolated local area networks.

[0073] The data frame rewriting module 450 is used to obtain the verification result from a specific address space in the first reflective memory card. If the verification result is a verification failure, the data frame corresponding to the serial number in the verification result is rewritten to the first reflective memory card and remapped to the second reflective memory card.

[0074] In some embodiments, the parameter acquisition module 410 is specifically used to access each parameter publishing server in the accelerator network; read the process variables representing accelerator parameters published in each parameter publishing server to obtain each accelerator parameter.

[0075] In some embodiments, the parameter data frame packaging module 430 specifically includes the following modules: The data length determination module is used to determine the data length of each data frame based on the data type of each accelerator parameter.

[0076] The address offset determination module is used to determine the address offset of each data frame based on the preset starting address, the data length of each data frame, and the order of each sequence number.

[0077] The write address space determination module is used to determine the address space of each data frame in the first reflective memory card based on the preset starting address, the data length of each data frame, and the address offset.

[0078] The address space write module is used to write each data frame into its corresponding address space.

[0079] In some embodiments, the address offset determination module is specifically used to, for any data frame, accumulate the data lengths of all data frames preceding the data frame in the storage order to obtain the address offset of the data frame.

[0080] In some embodiments, the accelerator parameter transmission device further includes: a rewrite statistics module, used to rewrite the data frame corresponding to the sequence number in the verification result to the first reflective memory card and remap it to the second reflective memory card, while counting the number of rewrites of the data frame corresponding to the sequence number, and stopping the retransmission and reporting an error when the number of rewrites reaches a preset rewrite number threshold.

[0081] like Figure 5 As shown, the accelerator parameter transmission device of this embodiment of the invention is applied to the second industrial control computer in the spectrometer network. The device includes the following modules 510 to 550.

[0082] The file header reading module 510 is used to read the file header at a specified address in the second reflection memory card of the spectrometer network. The file header records a preset starting address and records the data length and address offset of the data frames of each accelerator parameter in the storage order.

[0083] The data frame reading module 520 is used to read each data frame in the second reflective memory card according to the preset starting address, the data length of each data frame and the address offset recorded in the file header.

[0084] The data frame parsing module 530 is used to parse the sequence number, accelerator parameters and first checksum in any read data frame.

[0085] The verification module 540 is used to calculate a second check code based on the parsed sequence number and accelerator parameters, compare the second check code with the first check code, and if they match, the verification is successful, the parsed accelerator parameters are read, and a verification result indicating successful verification is generated; if they do not match, a verification result indicating failed verification is generated, and the verification result indicating failed verification encapsulates the sequence number of the accelerator parameters that failed verification.

[0086] The verification result writing module 550 is used to write the verification result into a specific address space in the second reflective memory card and map it to a specific address space in the first reflective memory card of the accelerator network. The verification result of the verification failure is used to instruct the first industrial control computer of the accelerator network to rewrite the data frame corresponding to the serial number into the first reflective memory card and remap it to the second reflective memory card when the serial number is read into the specific address space in the first reflective memory card.

[0087] The file header and each data frame in the second reflective memory card are obtained by the first reflective memory card of the accelerator network synchronously mapping the file header and each data frame in the first reflective memory card to the second reflective memory card based on the reflective memory mechanism. The accelerator network and the spectrometer network are different physically isolated local area networks.

[0088] In some embodiments, the parameter reading module 520 specifically includes the following modules: The starting address determination module is used to determine the starting address of each data frame based on the preset starting address and the address offset of each data frame.

[0089] The address space determination module is used to determine the address space of each data frame in the second reflective memory card based on the starting address of each data frame and the data length of each data frame.

[0090] The address space read module is used to read the corresponding data frame from the address space of each data frame in the second reflective memory card.

[0091] Figure 6 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 6 As shown, the electronic device may include: a processor 610, a communications interface 620, a memory 630, and a communication bus 640, wherein the processor 610, the communications interface 620, and the memory 630 communicate with each other via the communication bus 640. The processor 610 can call logical instructions in the memory 630 to execute an accelerator parameter transmission method for a first industrial control computer applied to an accelerator network. This method includes the following steps: The parameters of each accelerator are obtained from the accelerator network and numbered sequentially to form the sequence number of each accelerator parameter.

[0092] The first checksum is calculated based on the parameters of each accelerator and their corresponding serial numbers, and the corresponding serial numbers, accelerator parameters and the first checksum are packaged into a data frame.

[0093] The data frames corresponding to each accelerator parameter are written into the first reflection memory card of the accelerator network in order of preset starting address and sequence number.

[0094] A file header is generated and written to a specified address location on the first reflective memory card. The file header records the preset starting address and the data length and address offset of each data frame in storage order. The first reflective memory card is used to synchronously map the file header and each data frame to the second reflective memory card of the spectrometer network based on the reflective memory mechanism. This allows the second industrial control computer of the spectrometer network to read the file header from the second reflective memory card, read each data frame according to the file header, perform data verification on the accelerator parameters in the data frames, and write the verification results into a specific address space in the second reflective memory card and map them to the corresponding specific address space of the first reflective memory card. The accelerator network and the spectrometer network are different physically isolated local area networks.

[0095] The verification result is obtained from a specific address space in the first reflective memory card. If the verification result is a verification failure, the data frame corresponding to the serial number in the verification result is rewritten to the first reflective memory card and remapped to the second reflective memory card.

[0096] Alternatively, an accelerator parameter transmission method can be implemented using a second industrial control computer applied to the spectrometer network, the method comprising the following steps: The file header at a specified address in the second reflection memory card of the spectrometer network is read. The file header records a preset starting address and the data length and address offset of each accelerator parameter data frame are recorded in the storage order.

[0097] Based on the preset starting address, data length of each data frame and address offset recorded in the file header, each data frame in the second reflective memory card is read.

[0098] For any read data frame, parse the sequence number, accelerator parameters, and first checksum in the data frame.

[0099] The second check code is calculated based on the parsed sequence number and accelerator parameters. The second check code is compared with the first check code. If they match, the verification is successful, the parsed accelerator parameters are read, and a verification result indicating successful verification is generated. If they do not match, a verification result indicating failed verification is generated, and the verification result indicating failed verification encapsulates the sequence number of the accelerator parameters that failed verification.

[0100] The verification result is written to a specific address space in the second reflective memory card and mapped to a specific address space in the first reflective memory card of the accelerator network. The verification result of the failed verification is used to instruct the first industrial control computer of the accelerator network to rewrite the data frame corresponding to the serial number into the first reflective memory card and remap it to the second reflective memory card if the serial number is read in the specific address space of the first reflective memory card.

[0101] The file header and each data frame in the second reflective memory card are obtained by the first reflective memory card of the accelerator network synchronously mapping the file header and each data frame in the first reflective memory card to the second reflective memory card based on the reflective memory mechanism. The accelerator network and the spectrometer network are different physically isolated local area networks.

[0102] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0103] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer is able to execute the accelerator parameter transmission method for a first industrial control computer applied to an accelerator network provided by the above methods. The method includes the following steps: The parameters of each accelerator are obtained from the accelerator network and numbered sequentially to form the sequence number of each accelerator parameter.

[0104] The first checksum is calculated based on the parameters of each accelerator and their corresponding serial numbers, and the corresponding serial numbers, accelerator parameters and the first checksum are packaged into a data frame.

[0105] The data frames corresponding to each accelerator parameter are written into the first reflection memory card of the accelerator network in order of preset starting address and sequence number.

[0106] A file header is generated and written to a specified address location on the first reflective memory card. The file header records the preset starting address and the data length and address offset of each data frame in storage order. The first reflective memory card is used to synchronously map the file header and each data frame to the second reflective memory card of the spectrometer network based on the reflective memory mechanism. This allows the second industrial control computer of the spectrometer network to read the file header from the second reflective memory card, read each data frame according to the file header, perform data verification on the accelerator parameters in the data frames, and write the verification results into a specific address space in the second reflective memory card and map them to the corresponding specific address space of the first reflective memory card. The accelerator network and the spectrometer network are different physically isolated local area networks.

[0107] The verification result is obtained from a specific address space in the first reflective memory card. If the verification result is a verification failure, the data frame corresponding to the serial number in the verification result is rewritten to the first reflective memory card and remapped to the second reflective memory card.

[0108] Alternatively, an accelerator parameter transmission method can be implemented using a second industrial control computer applied to the spectrometer network, the method comprising the following steps: The file header at a specified address in the second reflection memory card of the spectrometer network is read. The file header records a preset starting address and the data length and address offset of each accelerator parameter data frame are recorded in the storage order.

[0109] Based on the preset starting address, data length of each data frame and address offset recorded in the file header, each data frame in the second reflective memory card is read.

[0110] For any read data frame, parse the sequence number, accelerator parameters, and first checksum in the data frame.

[0111] The second check code is calculated based on the parsed sequence number and accelerator parameters. The second check code is compared with the first check code. If they match, the verification is successful, the parsed accelerator parameters are read, and a verification result indicating successful verification is generated. If they do not match, a verification result indicating failed verification is generated, and the verification result indicating failed verification encapsulates the sequence number of the accelerator parameters that failed verification.

[0112] The verification result is written to a specific address space in the second reflective memory card and mapped to a specific address space in the first reflective memory card of the accelerator network. The verification result of the failed verification is used to instruct the first industrial control computer of the accelerator network to rewrite the data frame corresponding to the serial number into the first reflective memory card and remap it to the second reflective memory card if the serial number is read in the specific address space of the first reflective memory card.

[0113] The file header and each data frame in the second reflective memory card are obtained by the first reflective memory card of the accelerator network synchronously mapping the file header and each data frame in the first reflective memory card to the second reflective memory card based on the reflective memory mechanism. The accelerator network and the spectrometer network are different physically isolated local area networks.

[0114] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements an accelerator parameter transmission method for a first industrial control computer applied to an accelerator network, the method comprising the following steps: The parameters of each accelerator are obtained from the accelerator network and numbered sequentially to form the sequence number of each accelerator parameter.

[0115] The first checksum is calculated based on the parameters of each accelerator and their corresponding serial numbers, and the corresponding serial numbers, accelerator parameters and the first checksum are packaged into a data frame.

[0116] The data frames corresponding to each accelerator parameter are written into the first reflection memory card of the accelerator network in order of preset starting address and sequence number.

[0117] A file header is generated and written to a specified address location on the first reflective memory card. The file header records the preset starting address and the data length and address offset of each data frame in storage order. The first reflective memory card is used to synchronously map the file header and each data frame to the second reflective memory card of the spectrometer network based on the reflective memory mechanism. This allows the second industrial control computer of the spectrometer network to read the file header from the second reflective memory card, read each data frame according to the file header, perform data verification on the accelerator parameters in the data frames, and write the verification results into a specific address space in the second reflective memory card and map them to the corresponding specific address space of the first reflective memory card. The accelerator network and the spectrometer network are different physically isolated local area networks.

[0118] The verification result is obtained from a specific address space in the first reflective memory card. If the verification result is a verification failure, the data frame corresponding to the serial number in the verification result is rewritten to the first reflective memory card and remapped to the second reflective memory card.

[0119] Alternatively, an accelerator parameter transmission method can be implemented using a second industrial control computer applied to the spectrometer network, the method comprising the following steps: The file header at a specified address in the second reflection memory card of the spectrometer network is read. The file header records a preset starting address and the data length and address offset of each accelerator parameter data frame are recorded in the storage order.

[0120] Based on the preset starting address, data length of each data frame and address offset recorded in the file header, each data frame in the second reflective memory card is read.

[0121] For any read data frame, parse the sequence number, accelerator parameters, and first checksum in the data frame.

[0122] The second check code is calculated based on the parsed sequence number and accelerator parameters. The second check code is compared with the first check code. If they match, the verification is successful, the parsed accelerator parameters are read, and a verification result indicating successful verification is generated. If they do not match, a verification result indicating failed verification is generated, and the verification result indicating failed verification encapsulates the sequence number of the accelerator parameters that failed verification.

[0123] The verification result is written to a specific address space in the second reflective memory card and mapped to a specific address space in the first reflective memory card of the accelerator network. The verification result of the failed verification is used to instruct the first industrial control computer of the accelerator network to rewrite the data frame corresponding to the serial number into the first reflective memory card and remap it to the second reflective memory card if the serial number is read in the specific address space of the first reflective memory card.

[0124] The file header and each data frame in the second reflective memory card are obtained by the first reflective memory card of the accelerator network synchronously mapping the file header and each data frame in the first reflective memory card to the second reflective memory card based on the reflective memory mechanism. The accelerator network and the spectrometer network are different physically isolated local area networks.

[0125] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0126] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0127] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for transmitting accelerator parameters, characterized in that, The method, applied to a first industrial control computer in an accelerator network, includes: The parameters of each accelerator are obtained from the accelerator network and numbered sequentially to form the sequence number of each accelerator parameter. The first checksum is calculated based on the parameters of each accelerator and their corresponding serial numbers, and the corresponding serial numbers, accelerator parameters and the first checksum are packaged into a data frame. The data frames corresponding to each accelerator parameter are written into the first reflection memory card of the accelerator network in order of preset start address and sequence number. A file header is generated and written to a specified address location on the first reflective memory card. The file header records the preset starting address and the data length and address offset of each data frame in storage order. The first reflective memory card is used to synchronously map the file header and each data frame to the second reflective memory card of the spectrometer network based on the reflective memory mechanism. This allows the second industrial control computer of the spectrometer network to read the file header from the second reflective memory card, read each data frame according to the file header, perform data verification on the accelerator parameters in the data frames, and write the verification results into a specific address space in the second reflective memory card and map them to the corresponding specific address space of the first reflective memory card. The accelerator network and the spectrometer network are different physically isolated local area networks. The verification result is obtained from a specific address space in the first reflective memory card. If the verification result is a verification failure, the data frame corresponding to the serial number in the verification result is rewritten to the first reflective memory card and remapped to the second reflective memory card.

2. The accelerator parameter transmission method according to claim 1, characterized in that, Obtain the parameters of each accelerator from the accelerator network, including: Access the parameter publishing servers in the accelerator network; The process variables representing the accelerator parameters published in the parameter publishing server are read to obtain the accelerator parameters.

3. The accelerator parameter transmission method according to claim 1, characterized in that, The data frames corresponding to each accelerator parameter are written into the first reflection memory card of the accelerator network in order of preset start address and sequence number, including: The data length of each data frame is determined based on the data type of each accelerator parameter. Based on the preset starting address, the data length of each data frame, and the order of each sequence number, determine the address offset corresponding to each data frame; The address space of each data frame in the first reflective memory card is determined based on the preset starting address, the data length of each data frame, and the address offset. Each data frame is written to its corresponding address space.

4. The accelerator parameter transmission method according to claim 3, characterized in that, Based on the preset starting address, the data length of each data frame, and the order of each sequence number, the address offset corresponding to each data frame is determined, including: For any data frame, the address offset of any data frame is obtained by accumulating the data lengths of all data frames preceding the data frame in the storage order.

5. The accelerator parameter transmission method according to any one of claims 1 to 4, characterized in that, Also includes: While rewriting the data frame corresponding to the serial number in the verification result to the first reflective memory card and remapping it to the second reflective memory card, the number of rewrites of the data frame corresponding to the serial number is counted. When the number of rewrites reaches the preset rewrite threshold, retransmission is stopped and an error is reported.

6. A method for transmitting accelerator parameters, characterized in that, The method, which is applied to a second industrial control computer in a spectrometer network, includes: Read the file header at a specified address in the second reflection memory card of the spectrometer network. The file header records a preset starting address and records the data length and address offset of the data frames of each accelerator parameter in the storage order. Based on the preset starting address, data length of each data frame and address offset recorded in the file header, read each data frame in the second reflective memory card; For any read data frame, parse the sequence number, accelerator parameters, and first checksum in the data frame; The second check code is calculated based on the parsed sequence number and accelerator parameters. The second check code is compared with the first check code. If they match, the verification is successful, the parsed accelerator parameters are read, and a verification result indicating successful verification is generated. If they do not match, a verification result indicating failed verification is generated. The verification result indicating failed verification includes the sequence number of the accelerator parameters that failed verification. The verification result is written to a specific address space in the second reflective memory card and mapped to a specific address space in the first reflective memory card of the accelerator network. The verification result of the verification failure is used to instruct the first industrial control computer of the accelerator network to rewrite the data frame corresponding to the serial number into the first reflective memory card and remap it to the second reflective memory card when the serial number is read in the specific address space of the first reflective memory card. The file header and each data frame in the second reflective memory card are obtained by the first reflective memory card of the accelerator network synchronously mapping the file header and each data frame in the first reflective memory card to the second reflective memory card based on the reflective memory mechanism. The accelerator network and the spectrometer network are different physically isolated local area networks.

7. The accelerator parameter transmission method according to claim 6, characterized in that, Based on the preset starting address, data length of each data frame, and address offset recorded in the file header, read each data frame from the second reflective memory card, including: The starting address of each data frame is determined based on the preset starting address and the address offset of each data frame. Based on the starting address and data length of each data frame, the address space of each data frame in the second reflective memory card is determined. The corresponding data frames are read from their respective address spaces in the second reflective memory card.

8. An accelerator parameter transmission device, characterized in that, The first industrial control computer used in an accelerator network, the device comprising: The parameter acquisition module is used to obtain the parameters of each accelerator from the accelerator network and number each accelerator parameter in sequence to form the sequence number of each accelerator parameter. The data frame packaging module is used to calculate the first check code based on each accelerator parameter and its corresponding sequence number, and to package the corresponding sequence number, accelerator parameter and first check code into a data frame. The data frame writing module is used to write the data frames corresponding to each accelerator parameter into the first reflection memory card of the accelerator network in order of preset start address and sequence number. A file header writing module is used to generate a file header and write the file header to a specified address location on the first reflective memory card. The file header records the preset starting address and records the data length and address offset of each data frame in storage order. The first reflective memory card is used to synchronously map the file header and each data frame to the second reflective memory card of the spectrometer network based on a reflective memory mechanism. This allows the second industrial control computer of the spectrometer network to read the file header from the second reflective memory card, read each data frame according to the file header, perform data verification on the accelerator parameters in the data frames, and write the verification results into a specific address space in the second reflective memory card and map them to the corresponding specific address space of the first reflective memory card. The accelerator network and the spectrometer network are different physically isolated local area networks. The data frame rewriting module is used to obtain the verification result from a specific address space in the first reflective memory card. If the verification result is a verification failure, the data frame corresponding to the serial number in the verification result is rewritten to the first reflective memory card and remapped to the second reflective memory card.

9. An accelerator parameter transmission device, characterized in that, The second industrial control computer used in a spectrometer network includes: The file header reading module is used to read the file header at a specified address in the second reflection memory card of the spectrometer network. The file header records a preset starting address and records the data length and address offset of the data frames of each accelerator parameter in the storage order. The data frame reading module is used to read each data frame in the second reflective memory card according to the preset starting address, the data length of each data frame and the address offset recorded in the file header; The data frame parsing module is used to parse the sequence number, accelerator parameters, and first checksum from any read data frame. The verification module is used to calculate a second check code based on the parsed sequence number and accelerator parameters, compare the second check code with the first check code, and if they match, the verification is successful, the parsed accelerator parameters are read, and a verification result indicating successful verification is generated; if they do not match, a verification result indicating failed verification is generated, and the verification result indicating failed verification encapsulates the sequence number of the accelerator parameters that failed verification. The verification result writing module is used to write the verification result into a specific address space in the second reflective memory card and map it to a specific address space in the first reflective memory card of the accelerator network. The verification result of the verification failure is used to instruct the first industrial control computer of the accelerator network to rewrite the data frame corresponding to the serial number into the first reflective memory card and remap it to the second reflective memory card when the serial number is read into the specific address space in the first reflective memory card. The file header and each data frame in the second reflective memory card are obtained by the first reflective memory card of the accelerator network synchronously mapping the file header and each data frame in the first reflective memory card to the second reflective memory card based on the reflective memory mechanism. The accelerator network and the spectrometer network are different physically isolated local area networks.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the accelerator parameter transmission method as described in any one of claims 1 to 5, or the accelerator parameter transmission method as described in any one of claims 6 to 7.