A synchronous control system and method for linear accelerator
By using custom protocols and 1ms timer in the synchronization control system of linear accelerator, combined with the synchronization signal transmission of sync chip, the synchronization jitter problem in the existing technology is solved, the synchronization control at higher frequency is achieved, and the synchronization of the system is improved. Accuracy and reliability.
Patent Information
- Application Number
- CN202411002926.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Due to the real-time operating system and real-time Ethernet communication transmission method, the data update frequency can only reach 10ms, making it difficult to control the synchronization jitter between various components.
Using a custom protocol, a pulse signal with a period of 50MHz is generated through a 50MHz crystal oscillator chip, a 1ms trigger signal is generated by a 1ms timer, and a synchronization signal is sent to the beam, rack, bed and MLC control ports through four sync chips to achieve The communication interval is 1ms, and a 3-time redundant communication mechanism is used to ensure the reliability of the data link.
The synchronous signal transmission frequency between each component is achieved to 1ms, which significantly reduces synchronous jitter and improves the synchronization accuracy and reliability of the control system.
Smart Images

Figure CN118534828B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital information transmission, and in particular to a synchronous control system and method for a linear accelerator. Background Art
[0002] Medical linear accelerators are composed of multiple electronic control nodes: beam control nodes, bed motion control nodes, gantry motion control nodes, and MLC control nodes. These control nodes control the corresponding equipment actions. Medical linear accelerators require multiple components to act simultaneously to achieve fast and accurate radiotherapy. This requires the control system of medical linear accelerators to have high-frequency synchronous control capabilities.
[0003] The prior art has a synchronous control system for a linear accelerator, which includes a main control port and multiple sub-control ports. A real-time operating system and real-time Ethernet are used to send instructions to multiple different sub-control ports through the main control port, and control instructions are issued to different port nodes to realize the communication system of the linear accelerator.
[0004] However, the above method uses a real-time operating system and a real-time Ethernet communication transmission method, so data can only be updated once every 10ms, resulting in difficulty in controlling synchronization jitters between components. Summary of the invention
[0005] The purpose of the present invention is to provide a synchronous control system and method for a linear accelerator, which achieves a communication interval of 1ms by adopting a custom protocol, and a 3-time redundant communication mechanism to ensure the reliability of the data link and reduce the synchronization jitter between components.
[0006] To achieve the above-mentioned object, in a first aspect, the present invention provides a synchronous control system for a linear accelerator, comprising a master controller, a control command data buffer, a timer, a crystal oscillator chip, four slave controllers, a beam control port, a rack control port, a bed control port, an MLC control port and four sync chips;
[0007] The control command data buffer is connected to the main controller, and the timer is connected to the main controller; the crystal oscillator chip is connected to the timer and the main controller respectively; the four slave controllers are connected to the main controller respectively; the beam control port, the rack control port, the bed control port, and the MLC control port are connected to the four slave controllers respectively; the four sync chips are connected to the main controller respectively, and are connected to the beam control port, the rack control port, the bed control port, and the MLC control port respectively.
[0008] Wherein, the crystal oscillator chip is a 50MHz crystal oscillator, which generates a pulse signal with a period of 50MHz.
[0009] The timer is a 1ms timer, which generates a 1ms trigger signal by counting the number of pulses of 50,000 crystal oscillators.
[0010] Wherein, the slave controller includes a communication port, a PHY chip, a control flow data buffer, a control flow parser and an action executor, the communication port is connected to the master controller; the PHY chip is connected to the communication port; the control flow data buffer is connected to the PHY chip; the control flow parser is connected to the control flow data buffer; the action executor is connected to the control flow parser and connected to the beam control port.
[0011] Wherein, the slave controller also includes a CRC error check chip and a state stream data buffer, the CRC error check chip is connected to the control flow parser; the state stream data buffer is connected to the CRC error check chip and to the PHY chip.
[0012] The data path of the PHY chip is the physical layer of 100M Ethernet, and is used in conjunction with Category 6 twisted pair communication cables for signal transmission.
[0013] The sync chip is a 1ms signal synchronization generator, which realizes the sending of synchronization signals with a 1ms response.
[0014] In a second aspect, the present invention further provides a synchronous control method for a linear accelerator, comprising:
[0015] The control command data buffer receives and buffers external control instructions, and then sends the control instructions to the main controller;
[0016] The master controller converts the control instructions into command messages and sends the command messages to the four slave controllers at the same time;
[0017] The crystal oscillator chip generates a pulse signal with a period of 50MHz. The timer generates a 1ms trigger signal by counting the number of 50,000 crystal oscillator pulses, generates a 1ms synchronization instruction, and sends a sync signal to the beam control port, rack control port, bed control port and MLC control port through four sync chips at the same time;
[0018] The specific steps of outputting action instructions from the controller to each port include:
[0019] The specific steps of outputting action instructions from the controller to each port include:
[0020] receiving control frames transmitted from the main controller through the communication port;
[0021] Transmitted at 100M Ethernet rate through PHY chip;
[0022] Cache the control frames through the control stream buffer;
[0023] Then the control flow parser reads the control frame in the control flow buffer and parses it to obtain the action instruction;
[0024] After receiving the control instruction through the action executor, when waiting for the rising edge of the sync synchronization signal, the action instruction is issued, so that the corresponding port executes the synchronous action instruction.
[0025] The specific steps of outputting action instructions from the controller to each port also include:
[0026] The CRC error verification chip is used to control the flow parser to perform CRC verification on the control frame during the parsing process to determine whether there is a code error in its action instruction. If the verification is correct, the data message is uploaded. If the verification is wrong, the command message is repeated and the verification is repeated 3 times;
[0027] The state stream data buffer is used to buffer erroneous command messages and re-upload them to the main controller through the PHY chip to re-issue the command messages.
[0028] The present invention provides a synchronous control system for a linear accelerator, wherein the control command data buffer receives and caches external control instructions, and then sends the control instructions to the main controller, the main controller converts the control instructions into command messages, and simultaneously sends the command messages to four slave controllers, the crystal oscillator chip generates a pulse signal with a period of 50 MHz, the timer generates a trigger signal of 1 ms by counting the number of pulses of 50,000 crystal oscillators, and generates a synchronization instruction of 1 ms, and simultaneously sends a sync synchronization signal to the beam control port, the rack control port, the bed control port and the MLC control port through the four sync chips, when the beam control port, the rack control port, the bed control port and the MLC control port receive the sync synchronization signal, the four slave controllers output action instructions to each port and the communication interval is only 1 ms, and the communication interval of 1 ms is achieved by adopting a custom protocol, and the three-time redundant communication mechanism ensures the reliability of the data link and reduces the synchronization jitter between the components. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0030] Figure 1It is a schematic diagram of the overall structure of a synchronous control system for a linear accelerator of the present invention.
[0031] Figure 2 It is a structural schematic diagram of a slave controller of a synchronous control system for a linear accelerator according to the present invention.
[0032] Figure 3 The present invention is a timing relationship diagram of a synchronization signal and a data packet of a synchronization control system for a linear accelerator.
[0033] Figure 4 The invention discloses a timing relationship diagram of a synchronization signal of a synchronization control system for a linear accelerator and a beam control port, a gantry control port, a bed control port and an MLC control port.
[0034] Figure 5 The present invention is a flow chart of a synchronous control method for a linear accelerator.
[0035] Figure 6 It is a flow chart of outputting action instructions from a controller to each port in a synchronous control method for a linear accelerator of the present invention.
[0036] 101-main controller, 102-control command data buffer, 103-timer, 104-crystal oscillator chip, 105-slave controller, 106-beam control port, 107-rack control port, 108-bed control port, 109-MLC control port, 110-sync chip, 111-communication port, 112-PHY chip, 113-control flow data buffer, 114-control flow parser, 115-action executor, 116-CRC error verification chip, 117-status flow data buffer. DETAILED DESCRIPTION
[0037] In a first aspect, the present invention provides a synchronous control system for a linear accelerator. A first embodiment of a synchronous control system for a linear accelerator of the present application is:
[0038] See also Figure 1-Figure 4 ,in, Figure 1 It is a schematic diagram of the overall structure of a synchronous control system for a linear accelerator of the present invention. Figure 2 is a structural schematic diagram of a slave controller of a synchronous control system for a linear accelerator according to the present invention, Figure 3 It is a timing relationship diagram of a synchronization signal and a data packet of a synchronization control system for a linear accelerator of the present invention. Figure 4 The invention discloses a timing relationship diagram of a synchronization signal of a synchronization control system for a linear accelerator and a beam control port, a gantry control port, a bed control port and an MLC control port.
[0039] The present invention discloses a synchronous control system for a linear accelerator; comprising a main controller 101, a control command data buffer 102, a timer 103, a crystal oscillator chip 104, four slave controllers 105, a beam control port 106, a rack control port 107, a bed control port 108, an MLC control port 109 and four sync chips 110, wherein the slave controller 105 comprises a communication port 111, a PHY chip 112, a control flow data buffer 113, a control flow parser 114, an action executor 115, a CRC error verification chip 116 and a state flow data buffer 117. The communication interval of 1 ms is achieved through the above scheme, and the three-time redundant communication mechanism ensures the reliability of the data link and reduces the synchronization jitter between the components.
[0040] The control command data buffer 102 is connected to the main controller 101, and the timer 103 is connected to the main controller 101; the crystal oscillator chip 104 is connected to the timer 103 and the main controller 101 respectively; the four slave controllers 105 are connected to the main controller 101 respectively; the beam control port 106, the rack control port 107, the bed control port 108, and the MLC control port 109 are connected to the four slave controllers 105 respectively; the four sync chips 110 are connected to the main controller 101 respectively, and are connected to the beam control port 106, the rack control port 107, the bed control port 108, and the MLC control port 109 respectively. The control command data buffer 102 receives and caches external control instructions, and then sends the control instructions to the main controller 101. The main controller 101 converts the control instructions into command messages, and sends the command messages to the four slave controllers 105 at the same time. The crystal oscillator chip 104 generates a periodic The timer 103 generates a 1 ms trigger signal and a 1 ms synchronization instruction by counting the number of pulses of the 50,000 crystal oscillator. The sync synchronization signal is sent to the beam control port 106, the rack control port 107, the bed control port 108 and the MLC control port 109 through the four sync chips 110. When the beam control port 106, the rack control port 107, the bed control port 108 and the MLC control port 109 receive the sync synchronization signal, the four slave controllers 105 output action instructions to each port, and then cooperate with the sync synchronization signal to ensure that the actions of all nodes are synchronized and the communication interval is only 1 ms. By adopting a custom protocol, a communication interval of 1 ms is achieved. The three-times redundant communication mechanism ensures the reliability of the data link and reduces the synchronization jitter between the components. By adopting a custom protocol, a communication interval of 1 ms is achieved. The three-times redundant communication mechanism ensures the reliability of the data link and reduces the synchronization jitter between the components.
[0041] Secondly, the crystal oscillator chip 104 is a 50 MHz crystal oscillator, generating a pulse signal with a period of 50 MHz.
[0042] In addition, the timer 103 is a 1 ms timer 103, which generates a 1 ms trigger signal by counting the number of pulses of 50,000 crystal oscillators.
[0043] At the same time, the slave controller 105 includes a communication port 111, a PHY chip 112, a control flow data buffer 113, a control flow parser 114 and an action executor 115, wherein the communication port 111 is connected to the master controller 101; the PHY chip 112 is connected to the communication port 111; the control flow data buffer 113 is connected to the PHY chip 112; the control flow parser 114 is connected to the control flow data buffer 113; the action executor 115 is connected to the control flow parser 114 and to the beam control port 106; the CRC error check chip 116 is connected to the control flow parser 114; the state flow data buffer 117 is connected to the CRC error check chip 116 and to the PHY chip 112, and the communication port 111 receives the state flow data transmitted by the master controller 101 The control frame is transmitted through the PHY chip 112 at a rate of 100M Ethernet, and the control frame is cached through the control flow buffer. Then the control flow parser 114 reads the control frame in the control flow buffer for parsing. During the parsing process, the CRC error verification chip 116 performs CRC verification on the control frame to determine whether there is an error in its action instruction. If the verification is correct, the data message is uploaded. If the verification is wrong, the command message is repeatedly issued. The verification is repeated three times. The state flow data buffer 117 is used to cache the erroneous command message, and re-upload it to the main controller 101 through the PHY chip 112 to re-issue the command message, and finally obtain the correct action instruction. After receiving the control instruction through the action executor 115, when waiting for the rising edge of the sync synchronization signal, the action instruction is issued, so that the corresponding port executes the synchronous action instruction.
[0044] The data path of the PHY chip 112 is the physical layer of 100M Ethernet, and is used in conjunction with Category 6 twisted pair communication cables for signal transmission.
[0045] Finally, the sync chip 110 is a 1ms signal synchronization generator, which implements the transmission of a synchronization signal with a 1ms response.
[0046] When using a synchronous control system for a linear accelerator described in the present invention, the control command data buffer 102 receives and caches external control instructions, the crystal oscillator chip 104 generates a pulse signal with a period of 50 MHz, the timer 103 generates a 1 ms trigger signal by counting the number of pulses of 50,000 crystal oscillators, generates a 1 ms synchronization instruction, and simultaneously sends a sync signal to the beam control port 106, the rack control port 107, the bed control port 108 and the MLC control port 109 through the four sync chips 110, and then sends the control instruction to the main controller 101, the main controller 101 converts the control instruction into a command message, and sends the command message to the four slave controllers 105 at the same time, the communication port 111 receives the control frame transmitted by the main controller 101, and transmits it at a rate of 100M Ethernet through the PHY chip 112, and transmits it through the control flow buffer The control frame is cached, and then the control flow parser 114 reads the control frame in the control flow buffer for parsing. During the parsing process, the CRC error verification chip 116 performs CRC verification on the control frame to determine whether there is a code error in its action instruction. If the verification is correct, the data message is uploaded. If the verification is incorrect, the command message is repeated. The verification is repeated three times. The state flow data buffer 117 is used to cache the erroneous command message, and re-upload it to the main controller 101 through the PHY chip 112 to re-issue the command message, and finally obtain the correct action instruction. After receiving the control instruction through the action executor 115, when waiting for the rising edge of the sync synchronization signal, the action instruction is issued, so that the corresponding port executes the synchronous action instruction, ensuring that the actions of all nodes are performed synchronously and the communication interval is only 1ms. By adopting a custom protocol, a communication interval of 1ms is achieved. The three redundant communication mechanisms ensure the reliability of the data link and reduce the synchronization jitter between components.
[0047] In a second aspect, the present invention also provides a synchronous control method for a linear accelerator, see Figure 5-Figure 6 ,in, Figure 5 is a flow chart of a synchronous control method for a linear accelerator of the present invention, Figure 6 It is a flow chart of the synchronous control method for a linear accelerator of the present invention, wherein the slave controller outputs action instructions to each port, and the synchronous control method for a linear accelerator comprises:
[0048] S1: the control command data buffer 102 receives and buffers external control instructions, and then sends the control instructions to the main controller 101;
[0049] The control command data buffer 102 is connected to the external communication device, receives the communication instructions sent by the external communication device and buffers them.
[0050] S2: The master controller 101 converts the control instruction into a command message, and sends the command message to the four slave controllers 105 at the same time.
[0051] The master controller 101 reads the control instructions cached in the control command data buffer 102, converts them into command messages, and sends them to the corresponding four slave controllers at the same time.
[0052] S3: The crystal oscillator chip 104 generates a pulse signal, and the timer 103 generates a 1ms trigger signal by counting the number of crystal oscillator pulses, generates a 1ms synchronization instruction, and simultaneously sends a sync signal to the beam control port 106, the rack control port 107, the bed control port 108 and the MLC control port 109 through the four sync chips 110.
[0053] The crystal oscillator chip 104 generates a pulse signal with a period of 50 MHz. The timer 103 generates a 1 ms trigger signal by counting the number of 50,000 crystal oscillator pulses, generates a 1 ms synchronization instruction, and simultaneously sends a sync signal to the beam control port 106, the rack control port 107, the bed control port 108 and the MLC control port 109 through the four sync chips 110.
[0054] In S4, the slave controller 105 outputs action instructions to each port, and then cooperates with the sync signal to ensure that the actions of all nodes are performed synchronously.
[0055] The specific steps include:
[0056] S41 receives the control frame transmitted from the main controller 101 through the communication port 111;
[0057] The communication port 111 uses an RJ45 connector to quickly receive control frames transmitted from the main controller 101 .
[0058] S42 transmits at a rate of 100M Ethernet through the PHY chip 112;
[0059] The data path uses a 100M Ethernet physical layer for fast signal transmission, and the cable length difference is limited to 5M to ensure that the signal transmission time is within 30ns of time jitter.
[0060] S43 caches the control frame through the control stream buffer;
[0061] The control stream buffer is used to receive control frames and buffer them for subsequent parsing.
[0062] S44 Then the control flow parser 114 reads the control frame in the control flow buffer and parses it to obtain an action instruction;
[0063] The control flow parser 114 reads the control frame data cached in advance, parses it frame by frame, obtains the action instruction and then sends it to the action executor 115 .
[0064] S45 After receiving the control instruction through the action executor 115, when waiting for the rising edge of the sync signal, the action instruction is issued, so that the corresponding port executes the synchronous action instruction;
[0065] After receiving the control instruction, the action executor 115 waits for the rising edge of the sync signal and sends out the action instruction at the same time, so that the corresponding port executes the synchronous action instruction.
[0066] S46 The CRC error verification chip 116 is used by the control flow parser 114 to perform CRC verification on the control frame during the process of parsing the control frame to determine whether there is a code error in its action instruction. If the verification is correct, the data message is uploaded. If the verification is wrong, the command message is repeatedly issued, and the verification is repeated 3 times;
[0067] It is used to perform CRC verification on the control frame during the process of parsing the control frame to determine whether there is any error in its action instruction. If the verification is correct, the data message is uploaded. If the verification is wrong, the command message is repeated and the verification is repeated 3 times.
[0068] S47 The state stream data buffer 117 is used to buffer the erroneous command message, and re-upload it to the main controller 101 through the PHY chip 112 to re-issue the command message;
[0069] The state stream data buffer 117 is used to buffer erroneous command messages, and re-upload them to the main controller 101 through the PHY chip 112 to re-issue command messages, thereby achieving the effect of instruction error correction to ensure the accuracy of subsequent action instructions.
[0070] What is disclosed above is only one or more preferred embodiments of the present application, and cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that all or part of the processes of implementing the above embodiments and equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A synchronous control method for a linear accelerator, characterized in that: A synchronous control system for a linear accelerator, comprising a main controller, a control command data buffer, a timer, a crystal oscillator chip, four slave controllers, a beam control port, a rack control port, a bed control port, an MLC control port and four sync chips; The control command data buffer is connected to the main controller, and the timer is connected to the main controller; the crystal oscillator chip is connected to the timer and the main controller respectively; The four slave controllers are connected to the master controller respectively; the beam control port, the gantry control port, the bed control port, and the MLC control port are connected to the four slave controllers respectively; the four sync chips are connected to the master controller respectively, and are connected to the beam control port, the gantry control port, the bed control port, and the MLC control port respectively; The crystal oscillator chip is a 50MHz crystal oscillator, which generates a pulse signal with a period of 50MHz; The timer is a 1ms timer, which generates a 1ms trigger signal by counting the number of pulses of 50,000 crystal oscillators; The slave controller includes a communication port, a PHY chip, a control flow data buffer, a control flow parser and an action executor, wherein the communication port is connected to the master controller; the PHY chip is connected to the communication port; the control flow data buffer is connected to the PHY chip; the control flow parser is connected to the control flow data buffer; the action executor is connected to the control flow parser and is connected to the beam control port; The slave controller further comprises a CRC error check chip and a state stream data buffer, wherein the CRC error check chip is connected to the control stream parser; the state stream data buffer is connected to the CRC error check chip and to the PHY chip; The communication port receives the control frame transmitted by the main controller, transmits it at a rate of 100M Ethernet through the PHY chip, caches the control frame through the control flow buffer, and then the control flow parser reads the control frame in the control flow buffer for parsing. During the parsing process, the CRC error verification chip performs CRC verification on the control frame to determine whether there is a code error in its action instruction. If the verification is correct, the data message is uploaded. If the verification is wrong, the command message is repeatedly issued. The verification is repeated 3 times. The state flow data buffer is used to cache the erroneous command message, and re-upload it to the main controller through the PHY chip to re-issue the command message, and finally obtain the correct action instruction. After receiving the control instruction through the action executor, when waiting for the rising edge of the sync synchronization signal, the action instruction is issued, so that the corresponding port executes the synchronous action instruction; The data path of the PHY chip is the physical layer of 100M Ethernet, and it cooperates with Category 6 twisted pair communication cables for signal transmission; The sync chip is a 1ms signal synchronization generator, which realizes the transmission of synchronization signals with a 1ms response; The synchronous control method for a linear accelerator is applied to a synchronous control system for a linear accelerator, and comprises: The control command data buffer receives and buffers external control instructions, and then sends the control instructions to the main controller; The master controller converts the control instructions into command messages and sends the command messages to the four slave controllers at the same time; The crystal oscillator chip generates a pulse signal. The timer generates a 1ms trigger signal by counting the number of crystal oscillator pulses, generates a 1ms synchronization instruction, and sends a sync signal to the beam control port, rack control port, bed control port and MLC control port through four sync chips at the same time. Output action instructions from the controller to each port.
2. A synchronous control method for a linear accelerator according to claim 1, characterized in that: The specific steps of outputting action instructions from the controller to each port include: receiving control frames transmitted from the main controller through the communication port; Transmitted at 100M Ethernet rate through PHY chip; Cache the control frames through the control stream buffer; Then the control flow parser reads the control frame in the control flow buffer and parses it to obtain the action instruction; After receiving the control instruction through the action executor, when waiting for the rising edge of the sync synchronization signal, the action instruction is issued, so that the corresponding port executes the synchronous action instruction.
3. A synchronous control method for a linear accelerator according to claim 2, characterized in that: The specific steps of outputting action instructions from the controller to each port also include: The CRC error verification chip is used to control the flow parser to perform CRC verification on the control frame during the parsing process to determine whether there is a code error in its action instruction. If the verification is correct, the data message is uploaded. If the verification is wrong, the command message is repeated and the verification is repeated 3 times; The state stream data buffer is used to buffer erroneous command messages and re-upload them to the main controller through the PHY chip to re-issue the command messages.
