Method for accessing a magnetic resonance spectrometer, magnetic resonance spectrometer and computer storage medium
By generating a hardware configuration list through the management of the switching equipment and having the scanning control computer manage the hardware devices, the problem of needing to redevelop software when adding equipment to the magnetic resonance spectrometer system is solved, thus achieving hardware system compatibility and scalability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI ELECTRIC GROUP MEDICAL EQUIPMENT CO LTD
- Filing Date
- 2021-11-19
- Publication Date
- 2026-06-26
AI Technical Summary
Existing magnetic resonance spectrometer systems require separate software to manage components and connections, which means that software needs to be redeveloped every time a new device is added, resulting in a lack of scalability.
The system obtains connection information of hardware devices by managing the switching equipment, generates a configuration list, and the scanning control computer creates processes to manage the hardware devices, thus enabling a single set of control software to be compatible with different hardware system configurations.
It achieves compatibility with different hardware systems, reduces the need for redevelopment of existing software architectures, and has good scalability and device recognition capabilities.
Smart Images

Figure CN114093498B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of medical device technology, and more specifically, to a method for accessing a magnetic resonance spectrometer, a magnetic resonance spectrometer, and a computer-readable storage medium. Background Technology
[0002] MRI (magnetic resonance imaging) is a technique that uses a constant magnetic field generated by a magnet to excite a sample via a radio frequency system and a gradient system, producing magnetic resonance signals. These signals are then acquired and reconstructed by a receiving and acquisition system to obtain an image of the sample. An MRI system consists of many sub-components, including: a magnetic resonance spectrometer, a magnet, a bed, a gradient power amplifier, water cooling, receiving coils, and a scanning stage.
[0003] The magnetic resonance spectrometer is the core component of the magnetic resonance imaging system. It is responsible for generating corresponding radio frequency waveforms and gradient waveforms according to the user's input, acquiring magnetic resonance signals, reconstructing images based on the magnetic resonance signals, and presenting them to the user. The structure of the magnetic resonance spectrometer is very complex, as follows: (1) The magnetic resonance spectrometer has many components. A typical magnetic resonance spectrometer usually includes a scanning host, an image reconstruction computer, a control computer, a sequence computer, a radio frequency transmitting unit, a radio frequency receiving unit, a gradient waveform generation unit, and a monitoring and gating unit. With the development of magnetic resonance technology, there are more and more receiving channels and more and more receiving devices. In addition, with the application of parallel excitation technology, the radio frequency transmitter will also have multiple channels, and there may be multiple radio frequency transmitters. (2) The wiring of the magnetic resonance system is very complex. First, the various components inside the magnetic resonance spectrometer need to be connected together in a certain way. Second, the magnetic resonance spectrometer needs to be connected to many external devices, such as gradient power amplifiers, radio frequency functions, receiving coils, etc.
[0004] The current practice for managing components and connections in a magnetic resonance spectrometer is as follows: The spectrometer includes a control computer. This computer obtains information such as the manufacturer and type of the device, as well as its location, by reading the configuration space information of the card in the PCIe or PCI slot. This information allows it to determine how to communicate with other devices. Other devices must connect to their corresponding PCIe or PCI cards. Simultaneously, the software contains a hardware configuration list, and the actual configuration of the devices must conform to this list. Specifically... Figure 1 As shown. This results in each system configuration requiring independent supporting software, and adding a new device would require the software to be re-developed. Summary of the Invention
[0005] To address the existing technical problems, embodiments of the present invention provide a method for accessing a magnetic resonance spectrometer, a magnetic resonance spectrometer, and a computer-readable storage medium.
[0006] In a first aspect, embodiments of the present invention provide a method for accessing a magnetic resonance spectrometer, including a scanning host, a management and switching device, a scanning control computer, and an image reconstruction computer:
[0007] The management switching equipment generates a hardware device configuration list based on the obtained hardware device connection information and reports it to the scanning control computer;
[0008] The scanning control computer creates corresponding processes based on the hardware device configuration list to manage and operate the hardware devices.
[0009] The scanning host generates a scanning sequence from the received user input and sends it to the scanning control computer;
[0010] The scan control computer compiles the scan sequence into a hardware parameter sequence and sends it to the management switching device;
[0011] The management switching device exchanges the hardware parameter sequence to the radio frequency receiving unit, radio frequency transmitting unit, and gradient waveform generation unit according to the data type of the hardware parameter sequence;
[0012] The radio frequency transmitting unit generates radio frequency waveforms according to the hardware parameter sequence, the gradient waveform generating unit generates gradient waveforms according to the hardware parameter sequence, and the radio frequency receiving unit converts the received analog magnetic resonance signal into digital magnetic resonance data according to the hardware parameter sequence and sends it to the management and switching equipment.
[0013] The management and switching equipment sends digital magnetic resonance data to the scan control computer according to the data type of the digital magnetic resonance data.
[0014] The scanning control computer and the image reconstruction computer reconstruct image data based on the digital magnetic resonance data and send it to the scanning host to be displayed on the user interface.
[0015] Secondly, embodiments of the present invention provide a magnetic resonance spectrometer, including a scanning host, a management and switching device, a scanning control computer, and an image reconstruction computer:
[0016] The management and switching equipment is used to generate a hardware device configuration list based on the acquired hardware device connection information and report it to the scan control computer; to exchange the hardware parameter sequence to the radio frequency receiving unit, radio frequency transmitting unit, and gradient waveform generation unit according to the data type of the hardware parameter sequence; and to send the digital magnetic resonance data to the scan control computer according to the data type of the digital magnetic resonance data.
[0017] The scanning control computer is used to create corresponding processes based on the hardware device configuration list to manage and operate the hardware devices; compile the scanning sequence into a hardware parameter sequence and send it to the management switching device; and the image reconstruction computer reconstructs image data based on the digital magnetic resonance data and sends it to the scanning host to be displayed on the user interface.
[0018] The scanning host is used to generate a scanning sequence from the received user input and send it to the scanning control computer.
[0019] The radio frequency (RF) transmitting unit is used to generate RF waveforms based on a sequence of hardware parameters.
[0020] Gradient waveform generation unit, used to generate gradient waveforms based on hardware parameter sequences;
[0021] The radio frequency receiving unit is used to convert the received analog magnetic resonance signal into digital magnetic resonance data according to the instructions of the hardware parameter sequence and send it to the management switching equipment.
[0022] Thirdly, embodiments of the present invention provide a magnetic resonance spectrometer, including a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor. The transceiver, the memory, and the processor are connected via the bus. When the computer program is executed by the processor, it implements the steps in the magnetic resonance spectrometer access method described above.
[0023] Fourthly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps in the magnetic resonance spectrometer access method as described above.
[0024] The magnetic resonance spectrometer access method, magnetic resonance spectrometer, and computer-readable storage medium provided in this embodiment of the invention obtain the connection information of the entire magnetic resonance spectrometer's hardware devices through a management switching device, generate a hardware device configuration list, report it to the scanning control computer, and create corresponding processes to manage the aforementioned hardware devices. Therefore, the process software created based on the hardware devices can identify different hardware configurations, achieving the technical effect that a single set of control software can be compatible with different hardware system configurations.
[0025] The magnetic resonance spectrometer access method, magnetic resonance spectrometer, and computer-readable storage medium provided in this embodiment of the invention manage the aforementioned hardware devices by creating corresponding processes through a scanning control computer. If new hardware devices are added to the system, only the corresponding software modules need to be configured for control, without having to overturn the existing software architecture and redevelop it, thus exhibiting good scalability. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention or the background art, the accompanying drawings used in the embodiments of the present invention or the background art will be described below.
[0027] Figure 1 A schematic diagram of the structure of an existing magnetic resonance spectrometer is shown;
[0028] Figure 2 A first structural schematic diagram of a magnetic resonance spectrometer according to an embodiment of the present invention is shown;
[0029] Figure 3 A schematic diagram of the structure of the management and switching device of the magnetic resonance spectrometer according to an embodiment of the present invention is shown;
[0030] Figure 4 A flowchart of the signaling data recovery steps of the magnetic resonance spectrometer access method according to an embodiment of the present invention is shown;
[0031] Figure 5-A A schematic diagram of the service data packet signaling format of the magnetic resonance spectrometer access method according to an embodiment of the present invention is shown;
[0032] Figure 5-B This diagram illustrates the signaling format of the signaling data packet in the magnetic resonance spectrometer access method according to an embodiment of the present invention.
[0033] Figure 6 A schematic diagram of the execution device of the magnetic resonance spectrometer according to an embodiment of the present invention is shown;
[0034] Figure 7 A flowchart of a magnetic resonance spectrometer access method for device registration provided in an embodiment of the present invention is shown;
[0035] Figure 8 A flowchart illustrating a magnetic resonance spectrometer access method link maintenance provided by an embodiment of the present invention is shown;
[0036] Figure 9 A flowchart of the scanning process of a magnetic resonance spectrometer access method provided in an embodiment of the present invention is shown;
[0037] Figure 10 A schematic diagram of the second structure of a magnetic resonance spectrometer according to an embodiment of the present invention is shown. Detailed Implementation
[0038] The embodiments of the present invention will now be described with reference to flowchart illustrations and / or block diagrams of the methods, apparatus, magnetic resonance spectrometers, and computer-readable storage media.
[0039] It should be understood that each block of a flowchart and / or block diagram, as well as combinations of blocks in a flowchart and / or block diagram, can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine that, when executed by a computer or other programmable data processing apparatus, creates means for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.
[0040] These computer-readable program instructions may also be stored in a computer-readable storage medium that enables a computer or other programmable data processing device to function in a particular manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction apparatus product that includes the functions / operations specified in the blocks of a flowchart and / or block diagram.
[0041] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus or other device to produce a computer-implemented process, such that the instructions that execute on the computer or other programmable data processing apparatus provide a process for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.
[0042] The embodiments of the present invention will now be described with reference to the accompanying drawings.
[0043] like Figure 2 As shown, the magnetic resonance spectrometer of this embodiment includes: a scanning host, an Ethernet switch, a scanning control computer, an image reconstruction computer, a management switching device, a radio frequency (RF) transmitting unit, a gradient waveform generation unit, an RF receiving unit, and other devices. The management switching device is connected to the scanning control computer, the RF transmitting unit, the gradient waveform generation unit, and the RF receiving unit via a high-speed data interface. The scanning host is connected to the scanning control computer, the image reconstruction computer, and other devices via the Ethernet switch.
[0044] The radio frequency (RF) transmitting unit, RF receiving unit, and gradient waveform generation unit can be integrated into the management switching device in one or more ways. The scanning control computer is connected to the management switching device via a PCIe communication card and to the Ethernet switch via a high-speed data interface.
[0045] like Figure 3 As shown in this embodiment of the invention, the FPGA firmware module for managing the switching device mainly includes: a switching unit, a management unit, a data multiplexing unit, and a high-speed data interface. The data multiplexing unit includes a data multiplexing subunit and a data demultiplexing subunit.
[0046] The switching unit exchanges service data from different ports to designated ports according to the different categories of service data. The management unit generates signaling data and interprets the received signaling data. The data multiplexing subunit multiplexes the signaling data from the management unit and the service data from the switching unit onto a single physical channel and sends it to the high-speed data interface. The data demultiplexing subunit restores the data from a single physical channel, i.e., from the high-speed data interface, into signaling data or service data, and sends them to the management unit or switching unit respectively.
[0047] Figure 4 A flowchart illustrating the signaling data recovery steps of the magnetic resonance spectrometer access method according to an embodiment of the present invention is shown. The data multiplexing unit places the signaling data of the management unit with the highest priority to avoid the management data being affected by the service data. Figure 4 In this process, the data multiplexing unit prioritizes signaling data during processing, including the following steps:
[0048] Step S401: If the data multiplexing subunit receives signaling data from the management unit and service data from the switching unit at the same time, the data multiplexing subunit will buffer the service data.
[0049] Step S403: The data multiplexing subunit prioritizes transmitting signaling data to the high-speed data interface;
[0050] Step S405: The data multiplexing subunit will only start transmitting service data when the signaling data transmission is completed and there is no new signaling data to be transmitted.
[0051] Step S407: If the data multiplexing subunit receives a sudden signaling data from the management unit while transmitting service data to the high-speed data interface, the data multiplexing subunit will immediately suspend the transmission of service data and promptly send the signaling data to the high-speed data interface.
[0052] The magnetic resonance spectrometer access method of this invention, through the data multiplexing subunit in the data multiplexing unit, can accurately recover the service data and signaling data when the service data is mixed with signaling data, and set the signaling data as the highest priority to ensure the priority transmission of the signaling data.
[0053] To implement the demultiplexing function of the data demultiplexing subunit, two data packet formats need to be defined: service data packets and signaling data packets, with the signaling data packets set to a fixed length. The service data packet format includes: a packet header, data length, service data, and a data checksum (CRC), such as... Figure 5-A As shown. The format of a signaling data packet includes: packet header, command, parameters, and CRC checksum, such as... Figure 5-B As shown.
[0054] Signaling data packets and service data packets are distinguished by their headers. When service data is embedded in a signaling data packet, its recovery methods include: taking a fixed-length portion of the signaling data packet header as the entire signaling data packet; and during the recovery of service data packets, if a signaling data packet is encountered, removing the fixed-length portion as the signaling data, and continuing with the remaining data as the service data packet. The data checksum field can use cyclic redundancy checks (CRC) to verify data integrity. Service data packets and signaling data packets can use different CRC codes; for example, service data packets might use CRC32, while signaling data packets might use CRC5.
[0055] If the management switch is set as a connection device, other devices connected to the management switch include: PCIe communication card, radio frequency transmission unit, gradient waveform generation unit, radio frequency receiving unit, etc., which are collectively referred to as execution devices. Execution devices have a general structure.
[0056] In this embodiment of the invention, the PCIE communication card is built into the scan control computer and is used to connect the scan control computer and the management and switching device. The PCIE communication card is used for the download of sequence data, the upload of magnetic resonance data, and the synchronization of the scan control computer with other components of the magnetic resonance spectrometer (including the management and switching device, the radio frequency transmission unit, the gradient waveform generation unit, and the radio frequency receiving unit), together forming a complete magnetic resonance spectrometer.
[0057] like Figure 6 As shown in this embodiment of the invention, the FPGA firmware modules of each execution device mainly include: a high-speed data interface, a data multiplexing unit, a FIFO (First Input First Output) memory, an execution unit, and a dedicated circuit interface. The dedicated circuit interface and dedicated circuits are unique components of each type of execution device. The dedicated circuit interfaces and dedicated circuits of the PCIE communication card, RF transmitting unit, gradient waveform generation unit, and RF receiving unit are adaptively designed according to the different functions of the execution device. The high-speed data interface and data multiplexing unit of the execution device have the same function and structure as the high-speed data interface and data multiplexing unit of the management switching device, and their functional structure can be referenced during design. The FIFO memory is used to buffer the service data exchanged between the switching unit of the management switching device and the dedicated circuit interface of the execution device, achieving matching of service data transmission rates. The execution unit of the execution device cooperates with the management unit of the management switching device to jointly realize the function of management switching. They have different structures; the execution unit of the execution device can be named the slave management unit, and the management unit of the management switching device can be named the master management unit.
[0058] The management unit that manages the switching equipment implements the algorithm flow for managing the switching equipment through signaling interaction with the execution unit of the execution equipment. Signaling data, i.e., message definitions, uses signaling data packets. Some messages are mandatory, such as messages registering device numbers or device types; others are not mandatory and can be configured as needed, such as verification code messages.
[0059] like Figure 7 The diagram illustrates a flowchart of a magnetic resonance spectrometer access method for device registration provided in an embodiment of the present invention, specifically including:
[0060] Step S701: After the magnetic resonance spectrometer is powered on, physical link synchronization begins between the high-speed data interfaces. After synchronization is completed, the management switching device and each execution device can communicate data through the high-speed data interface.
[0061] Step S703: After the physical link synchronization is completed, the execution unit of the execution device begins to send a "register device number request" signaling to the management unit of the management switching device;
[0062] Step S705: After receiving the "Register Device Number Request" message, the management unit will save the device number and send a "Received Device Number Request" message to the execution unit;
[0063] Step S707: After receiving the message "Received device number request", the execution unit begins to send the message "Register device type request" to the management unit;
[0064] Step S709: After receiving the "Register Device Type Request" message, the management unit will save the device type and send the "Received Device Type Request" message to the execution unit;
[0065] Step S711: If the magnetic resonance spectrometer system is designed not to require security authentication, the management unit will send a "registration successful" message to the execution unit.
[0066] Step S713: After receiving the "registration successful" message, the execution unit will respond with the "registration successful received" message;
[0067] Step S715: After all physical links have been successfully registered, the management unit will send a "system ready" message to the execution unit. The magnetic resonance spectrometer enters the ready stage, and the stage of detecting each execution device has also been completed.
[0068] Preferably, to improve the security of equipment authentication for magnetic resonance spectrometers, the security authentication mode of this embodiment further includes the following steps:
[0069] Step S717: The management unit sends a "security code required" message to the execution unit;
[0070] Step S719: After receiving the "Security code required" message, the execution unit will send the security code;
[0071] Step S721: After receiving the security code, the management unit will verify whether the security code is correct;
[0072] Step S723: If the security code is correct, the management unit will send a "registration successful" message to the execution unit. The following steps are consistent with the above steps S703-S715.
[0073] Step S725: If the security code is incorrect, the management unit will send a "verification failed" message to the execution unit and then return to the waiting device registration state;
[0074] Step S727: After receiving the "verification failed" message, the execution unit also returns to the device registration state;
[0075] Step S729: The management exchange device obtains the connection information of the hardware devices of the entire magnetic resonance spectrometer, generates a hardware device configuration list, and reports it to the scanning control computer;
[0076] The connection device includes: a radio frequency receiving unit, a radio frequency transmitting unit, a gradient waveform generating unit, a management switching device, and a PCIe communication card;
[0077] Step S731: The scanning control computer creates corresponding processes to manage the hardware devices according to the hardware device configuration list.
[0078] Step S733: The scanning control computer reads the hardware device configuration list from the self-managed switching device and verifies whether the current hardware device configuration meets the system's operating requirements;
[0079] Step S735: The scanning control computer creates a virtual device corresponding to the hardware device according to the hardware device configuration list table. This virtual device is used by the upper-level scanning software in the scanning control computer to access the hardware device. The address of the hardware device is read from the hardware device configuration list table. This virtual device can shield the specific physical topology of the magnetic resonance spectrometer. The upper-level scanning software does not know and does not need to know the information of the specific physical topology of the magnetic resonance spectrometer.
[0080] In this embodiment of the invention, a virtual device is an application process. The type and number of virtual devices are configured and defined according to the needs of the upper-layer scanning software and the actual connected devices. For example, it can be defined as: several transmit channels, several receive channels, and gradient X, Y, and Z units.
[0081] Step S737: After the virtual device creation process is completed, the control computer scans and sets the enable register of the management and switching device, and the magnetic resonance spectrometer enters the ready state.
[0082] To prevent the aforementioned execution devices from not interacting with the management switch for extended periods, thus preventing the management switch from promptly obtaining information about the operation status of the execution devices, the management switch can send a "link maintenance heartbeat" message to keep track of the status of each link.
[0083] Figure 8 The diagram illustrates a flowchart of a magnetic resonance spectrometer access method link maintenance provided by an embodiment of the present invention, specifically including:
[0084] Step S801: After the magnetic resonance spectrometer enters the system ready state, the management unit of the management and switching equipment will periodically send "link maintenance" messages to the execution units of each execution device.
[0085] Step S803: After receiving the "link maintenance" message, the execution unit will return the "link maintenance received" message to the management unit;
[0086] Step S805: After the management unit receives the "Link maintenance received" message, it indicates that the link is normal;
[0087] Step S807: If the message is not received, the timeout counter is incremented by 1. If the timeout counter exceeds the set value, the management unit will enter an error state and broadcast a "system error" message.
[0088] Step S809: If the timeout counter does not exceed the set value, the management unit will resend the "link maintenance" message to the execution unit after a certain period of time;
[0089] Step S811: If a "link maintenance" message is received, the execution unit will respond with a "link maintenance received" message;
[0090] Step S813: If the "link maintenance" message is not received within the set time, the execution unit will enter an error state;
[0091] Step S815: If the execution unit receives a "system error" message, the execution unit will also enter an error state.
[0092] Figure 9 A flowchart illustrating the scanning process of a magnetic resonance spectrometer access method provided in an embodiment of the present invention is shown, as follows: Figure 9 As shown, the scanning process of the magnetic resonance spectrometer access method includes:
[0093] Step S901: The scanning host receives user input, generates a scanning sequence, and sends it to the scanning control computer;
[0094] Step S903: After receiving the scan sequence, the scan control computer compiles the scan sequence into a hardware parameter sequence and then sends it to the management switching device;
[0095] Step S905: The switching unit of the management switching equipment exchanges the hardware parameter sequence to devices such as the radio frequency receiving unit, radio frequency transmitting unit, and gradient waveform generation unit according to the data type of the hardware parameter sequence;
[0096] In step S905, the hardware parameter sequence is mainly used to control the time when the radio frequency receiving unit uploads data, the channel number to be uploaded, the amount of data uploaded, and the local oscillator frequency, etc.
[0097] Step S907: After receiving the hardware parameter sequence, the radio frequency transmitting unit generates a radio frequency waveform according to the hardware parameter sequence, the gradient waveform generating unit generates a gradient waveform according to the hardware parameter sequence, and the radio frequency receiving unit collects analog magnetic resonance data according to the instructions of the hardware parameter sequence, converts the analog magnetic resonance data into digital magnetic resonance data, and sends it to the management and switching equipment.
[0098] Step S909: The management and switching device sends the digital magnetic resonance data to the scan control computer according to the data type of the digital magnetic resonance data, and uploads the digital magnetic resonance data to the reconstruction application through the PCIe communication card;
[0099] Step S911: The reconstruction application running on the scanning control computer and the image reconstruction computer communicates through the network of the Ethernet switch to reconstruct the image data;
[0100] Step S913: The reconstructed image data is sent to the scanning host, which then displays the image data on its user interface.
[0101] In this embodiment of the invention, since the image reconstruction step is very resource-intensive, the existing image reconstruction computer is only equivalent to the reconstruction function of the scanning control computer in this embodiment. The architecture of this embodiment, by adding an image reconstruction computer, provides the embodiment with more image reconstruction computing resources, thus offering the technical advantages of fast image reconstruction speed and good performance control. In low-configuration settings, the image reconstruction computer can be omitted, thereby reducing system costs. Therefore, the architecture of this embodiment can be applied to different application scenarios.
[0102] The magnetic resonance spectrometer access method provided in this embodiment of the invention allows the magnetic resonance spectrometer system to be expanded through management switching equipment and Ethernet switches, thus providing excellent scalability. The wiring of the magnetic resonance spectrometer system is very complex, and the management switching equipment can automatically identify the access device, making installation and maintenance convenient.
[0103] The magnetic resonance spectrometer access method provided in this embodiment of the invention obtains the connection information of the entire magnetic resonance spectrometer's hardware devices through a management switching device, generates a hardware device configuration list, reports it to the scanning control computer, and creates corresponding processes to manage the aforementioned hardware devices. Therefore, the process software created based on the hardware devices can identify different hardware configurations, achieving the technical effect that a single set of control software can be compatible with different hardware system configurations.
[0104] The magnetic resonance spectrometer access method provided in this invention uses a scanning control computer to create corresponding processes to manage the aforementioned hardware devices. If new hardware devices are added to the system, only the corresponding software modules need to be configured for control, without having to overturn the existing software architecture and redevelop it, thus exhibiting good scalability.
[0105] The above text combined Figures 2 to 9 The method for accessing a magnetic resonance spectrometer according to an embodiment of the present invention is described in detail below. Figure 2 and Figure 10 The following describes in detail the access of the magnetic resonance spectrometer according to an embodiment of the present invention.
[0106] Figure 2 A first structural schematic diagram of the magnetic resonance spectrometer provided in an embodiment of the present invention is shown. Figure 2 As shown, the magnetic resonance spectrometer includes: a scanning host, a management and switching device, a scanning control computer, and an image reconstruction computer.
[0107] The management and switching equipment is used to generate a hardware device configuration list based on the acquired hardware device connection information and report it to the scan control computer; to exchange the hardware parameter sequence to the radio frequency receiving unit, radio frequency transmitting unit, and gradient waveform generation unit according to the data type of the hardware parameter sequence; and to send the digital magnetic resonance data to the scan control computer according to the data type of the digital magnetic resonance data.
[0108] The scanning control computer is used to create corresponding processes based on the hardware device configuration list to manage the hardware devices; compile the scanning sequence into a hardware parameter sequence and send it to the management exchange device; and the image reconstruction computer reconstructs image data based on the digital magnetic resonance data and sends it to the scanning host to be displayed on the user interface.
[0109] The scanning host is used to generate a scanning sequence from the received user input and send it to the scanning control computer.
[0110] The radio frequency (RF) transmitting unit is used to generate RF waveforms based on a sequence of hardware parameters.
[0111] Gradient waveform generation unit, used to generate gradient waveforms based on hardware parameter sequences;
[0112] The radio frequency receiving unit is used to convert the received analog magnetic resonance signal into digital magnetic resonance data according to the instructions of the hardware parameter sequence and send it to the management switching equipment.
[0113] In an embodiment of the present invention, optionally, the scanning control computer specifically includes:
[0114] The configuration verification module is used by the self-managed switching equipment to read the hardware device configuration list and verify whether the current hardware device configuration meets the system's operating requirements.
[0115] The device creation module is used to create virtual devices corresponding to hardware devices based on the hardware device configuration list, which are used by the upper-level scanning software in the scanning control computer to access the hardware devices.
[0116] The enable setting module is used to set the enable register of the management switching equipment, and the magnetic resonance spectrometer enters the ready state.
[0117] In this embodiment of the invention, the management switching device specifically includes a switching unit, a management unit, and a data multiplexing unit. The data multiplexing unit includes a data multiplexing subunit and a data demultiplexing subunit.
[0118] The switching unit is used to switch business data from the data port to the designated port according to the type of business data.
[0119] The management unit is used to generate new signaling data and interpret received signaling data;
[0120] The data multiplexing subunit is used to multiplex the signaling data of the management unit and the service data of the switching unit onto the physical channel and send them to the high-speed data interface.
[0121] The data demultiplexing subunit is used to restore the data transmitted from the high-speed data interface of the physical channel into the signaling data or service data, and send them to the management unit or the switching unit respectively.
[0122] In this embodiment of the invention, it further includes:
[0123] The data multiplexing unit is used to cache service data when receiving signaling data and service data; prioritize sending signaling data to the high-speed data interface; and send service data to the high-speed data interface after the signaling data has been sent. If new signaling data is received during the transmission of service data, the transmission of service data will be paused and the new signaling data will be sent first.
[0124] In this embodiment of the invention, an execution device is also included. The execution device includes a radio frequency receiving unit, a radio frequency transmitting unit, and a gradient waveform generating unit. Specifically, the execution device includes the execution unit:
[0125] The management unit is used to receive messages from the execution unit of the physical link requesting a device number and perform the operation of saving the device number; send a message to the execution unit that the device number request has been received; receive messages from the execution unit requesting a device type and perform the operation of saving the device type; send a message to the execution unit that the device type has been received; send a message to the execution unit that the physical link registration has been successful; and after all physical links have been successfully registered, send a message to the execution unit that the system is ready.
[0126] In this embodiment of the invention, it further includes:
[0127] The management unit is used to send a link maintenance heartbeat message to the execution unit; receiving the link maintenance heartbeat message indicates that the link status is normal; if the link maintenance heartbeat message is not received within a set time, it will enter an error state and broadcast a system error message; if the link maintenance heartbeat message is received within the set time, it will resend the link maintenance heartbeat message to the execution unit.
[0128] The execution unit, upon receiving the message, replies to the management unit with a message indicating that the link maintenance heartbeat has been received; upon receiving the message, it replies to the management unit with a message indicating that the link maintenance heartbeat has been received; if the message is not received within a set time, it will enter an error state; if a system error message is received, it will enter an error state.
[0129] In this embodiment of the invention, since the image reconstruction step is very resource-intensive, the existing image reconstruction computer is only equivalent to the reconstruction function of the scanning control computer in this embodiment. The architecture of this embodiment makes it easier to add an image reconstruction computer, giving the embodiment more image reconstruction computing resources. Therefore, this embodiment has the technical advantages of fast image reconstruction speed and good performance control. In low-configuration settings, the image reconstruction computer can be omitted, thereby reducing system costs. Therefore, the architecture of this embodiment can be applied to different application scenarios.
[0130] The magnetic resonance spectrometer provided in this embodiment of the invention obtains the connection information of the entire magnetic resonance spectrometer's hardware devices through a management switching device, generates a hardware device configuration list, reports it to the scanning control computer, and creates corresponding processes to manage the aforementioned hardware devices. Therefore, the process software created based on the hardware devices can identify different hardware configurations, achieving the technical effect that a single set of control software can be compatible with different hardware system configurations.
[0131] The magnetic resonance spectrometer provided in this embodiment of the invention manages the hardware devices by creating corresponding processes through a scanning control computer. If new hardware devices are added to the system, only the corresponding software modules need to be configured for control, without having to overturn the existing software architecture and redevelop it, thus exhibiting good scalability.
[0132] In addition, this invention also provides a magnetic resonance spectrometer electronic device, including a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor. The transceiver, the memory, and the processor are connected via the bus. When the computer program is executed by the processor, it implements the various processes of the above-described magnetic resonance spectrometer access method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0133] For details, see Figure 10 As shown, this embodiment of the invention also provides an electronic device, which includes a bus 101, a processor 102, a transceiver 103, a bus interface 104, a memory 105, and a user interface 106.
[0134] In this embodiment of the invention, the electronic device further includes: a computer program stored in the memory 105 and executable on the processor 102, wherein the computer program, when executed by the processor 102, performs the following steps:
[0135] The management switching equipment generates a hardware device configuration list based on the obtained hardware device connection information and reports it to the scanning control computer;
[0136] The scanning control computer creates corresponding processes based on the hardware device configuration list to manage and operate the hardware devices.
[0137] The scanning host generates a scanning sequence from the received user input and sends it to the scanning control computer;
[0138] The scan control computer compiles the scan sequence into a hardware parameter sequence and sends it to the management switching device;
[0139] The management switching device exchanges the hardware parameter sequence to the radio frequency receiving unit, radio frequency transmitting unit, and gradient waveform generation unit according to the data type of the hardware parameter sequence;
[0140] The radio frequency transmitting unit generates radio frequency waveforms according to the hardware parameter sequence, the gradient waveform generating unit generates gradient waveforms according to the hardware parameter sequence, and the radio frequency receiving unit converts the received analog magnetic resonance signal into digital magnetic resonance data according to the hardware parameter sequence and sends it to the management and switching equipment.
[0141] The management and switching equipment sends digital magnetic resonance data to the scan control computer according to the data type of the digital magnetic resonance data.
[0142] The scanning control computer and the image reconstruction computer reconstruct image data based on the digital magnetic resonance data and send it to the scanning host to be displayed on the user interface.
[0143] Optionally, when the computer program is executed by the processor 102, it may also perform the following steps:
[0144] The scanning control computer creates corresponding processes based on the hardware device configuration list to manage and operate the hardware devices, specifically including:
[0145] The self-managed switching device reads the hardware device configuration list and checks whether the current hardware device configuration meets the system's operating requirements.
[0146] Create virtual devices corresponding to the hardware devices based on the hardware device configuration list, which are used by the upper-level scanning software in the scanning control computer to access the hardware devices.
[0147] By setting the enable register for the management switching device, the magnetic resonance spectrometer enters the ready state.
[0148] Optionally, when the computer program is executed by the processor 102, it may also perform the following steps:
[0149] The management and switching equipment specifically includes switching units, management units, and data multiplexing units:
[0150] The switching unit switches the service data from the data port to the designated port according to the type of service data;
[0151] The management unit generates new signaling data and interprets the received signaling data;
[0152] The data multiplexing unit includes a data multiplexing subunit and a data demultiplexing subunit:
[0153] The data multiplexing subunit multiplexes the signaling data from the management unit and the service data from the switching unit onto the physical channel and sends them to the high-speed data interface;
[0154] The data demultiplexing subunit restores the data transmitted from the high-speed data interface of the physical channel into the signaling data or service data, and sends them to the management unit or the switching unit respectively.
[0155] Optionally, when the computer program is executed by the processor 102, it may also perform the following steps:
[0156] When the data multiplexing unit receives signaling data and service data, it caches the service data.
[0157] The data multiplexing unit prioritizes sending signaling data to the high-speed data interface;
[0158] After the signaling data has been sent, the service data is then sent to the high-speed data interface.
[0159] If the data multiplexing unit receives new signaling data while sending service data, it will pause the transmission of service data and prioritize sending the new signaling data.
[0160] Optionally, when the computer program is executed by the processor 102, it may also perform the following steps:
[0161] It also includes execution devices, which include a radio frequency receiving unit, a radio frequency transmitting unit, and a gradient waveform generating unit. Specifically, the execution devices include the execution unit:
[0162] The management unit receives a message from the execution unit of the physical link requesting a registered device number and performs the operation of saving the device number;
[0163] The management unit sends a message to the execution unit that it has received the device number request;
[0164] The management unit receives a message from the execution unit requesting the registration of a device type and performs the operation of saving the device type;
[0165] The management unit sends a message to the execution unit indicating that the device type has been received;
[0166] The management unit sends a message to the execution unit indicating that the physical link registration was successful;
[0167] Once all physical links have been successfully registered, the management unit sends a system-ready message to the execution unit.
[0168] Optionally, when the computer program is executed by the processor 102, it may also perform the following steps:
[0169] The management unit sends a link maintenance heartbeat message to the execution unit;
[0170] After receiving the message, the execution unit replies to the management unit with a message that the link maintenance heartbeat has been received;
[0171] The management unit receives a message indicating that the link is maintaining a heartbeat, signifying that the link status is normal.
[0172] If the management unit does not receive a link maintenance heartbeat message within the set time, the management unit will enter an error state and broadcast a system error message.
[0173] If the management unit receives the link maintenance heartbeat message within the set time, the management unit will resend the link maintenance heartbeat message to the execution unit;
[0174] After receiving the message, the execution unit replies to the management unit with a message that the link maintenance heartbeat has been received;
[0175] If the execution unit does not receive the message within the set time, the execution unit will enter an error state;
[0176] If the execution unit receives the system error message, the execution unit will enter an error state.
[0177] Transceiver 103 is used to receive and send data under the control of processor 102.
[0178] exist Figure 10 In the bus architecture (represented by bus 101), bus 101 may include any number of interconnected buses and bridges, and bus 101 connects various circuits including one or more processors represented by processor 102 and memory represented by memory 105.
[0179] Bus 101 represents one or more of several types of bus architectures, including memory buses and memory controllers, peripheral buses, Accelerated Graphics Port (AGP), processors, or local buses using any bus architecture from various bus architectures. As an example and not a limitation, such architectures include: Industry Standard Architecture (ISA) buses, Micro Channel Architecture (MCA) buses, Enhanced ISA (EISA) buses, Video Electronics Standards Association (VESA) buses, and Peripheral Component Interconnect (PCI) buses.
[0180] Processor 102 can be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The processors mentioned above include: general-purpose processors, central processing units (CPUs), network processors (NPs), digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), complex programmable logic devices (CPLDs), programmable logic arrays (PLAs), microcontroller units (MCUs) or other programmable logic devices, discrete gates, transistor logic devices, and discrete hardware components. They can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. For example, the processor can be a single-core processor or a multi-core processor, and the processor can be integrated on a single chip or located on multiple different chips.
[0181] Processor 102 can be a microprocessor or any conventional processor. The method steps disclosed in the embodiments of the present invention can be directly executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in readable storage media known in the art, such as Random Access Memory (RAM), Flash Memory, Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), registers, etc. The readable storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.
[0182] Bus 101 can also connect various other circuits, such as peripheral devices, voltage regulators, or power management circuits. Bus interface 104 provides an interface between bus 101 and transceiver 103, all of which are well known in the art. Therefore, embodiments of the present invention will not be described further.
[0183] Transceiver 103 can be a single component or multiple components, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. For example, transceiver 103 receives external data from other devices, and transceiver 103 is used to send data processed by processor 102 to other devices. Depending on the nature of the computer system, a user interface 106 may also be provided, such as a touchscreen, physical keyboard, monitor, mouse, speaker, microphone, trackball, joystick, or stylus.
[0184] It should be understood that, in embodiments of the present invention, memory 105 may further include memory remotely configured relative to processor 102, and such remotely configured memory may be connected to a server via a network. One or more portions of the aforementioned network may be an ad hoc network, intranet, extranet, virtual private network (VPN), local area network (LAN), wireless local area network (WLAN), wide area network (WAN), wireless wide area network (WWAN), metropolitan area network (MAN), Internet, public switched telephone network (PSTN), ordinary old-style telephone service (POTS), cellular telephone network, wireless network, Wi-Fi network, and combinations of two or more of the aforementioned networks. For example, cellular telephone networks and wireless networks can be Global System for Mobile Communications (GSM), Code Division Multiple Access (CDMA), WiMAX, General Packet Radio Service (GPRS), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), LTE Frequency Division Duplex (FDD), LTE Time Division Duplex (TDD), Advanced Long Term Evolution (LTE-A), Universal Mobile Telecommunications System (UMTS), Enhanced Mobile Broadband (eMBB), Massive Machine Type Communication (mMTC), Ultra Reliable Low Latency Communications (uRLLC), etc.
[0185] It should be understood that the memory 105 in the embodiments of the present invention may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Non-volatile memory includes: read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory.
[0186] Volatile memory includes random access memory (RAM), which serves as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 105 of the electronic device described in this embodiment includes, but is not limited to, the above and any other suitable types of memory.
[0187] In this embodiment of the invention, the memory 105 stores the following elements of the operating system 1051 and the application 1052: executable modules, data structures, or subsets thereof, or extended sets thereof.
[0188] Specifically, the operating system 1051 includes various system programs, such as a framework layer, a core library layer, and a driver layer, used to implement various basic business functions and handle hardware-based tasks. The application program 1052 includes various applications, such as a media player and a browser, used to implement various application functions. Programs implementing the methods of this embodiment of the invention can be included in the application program 1052. The application program 1052 includes applets, objects, components, logic, data structures, and other computer system executable instructions that perform specific tasks or implement specific abstract data types.
[0189] In addition, this embodiment of the invention also provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the various processes of the above-described magnetic resonance spectrometer access method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0190] Specifically, when a computer program is executed by a processor, it can perform the following steps:
[0191] Includes scanning host, management and switching equipment, scanning control computer, and image reconstruction computer:
[0192] The management switching equipment generates a hardware device configuration list based on the obtained hardware device connection information and reports it to the scanning control computer;
[0193] The scanning control computer creates corresponding processes based on the hardware device configuration list to manage and operate the hardware devices.
[0194] The scanning host generates a scanning sequence from the received user input and sends it to the scanning control computer;
[0195] The scan control computer compiles the scan sequence into a hardware parameter sequence and sends it to the management switching device;
[0196] The management switching device exchanges the hardware parameter sequence to the radio frequency receiving unit, radio frequency transmitting unit, and gradient waveform generation unit according to the data type of the hardware parameter sequence;
[0197] The radio frequency transmitting unit generates radio frequency waveforms according to the hardware parameter sequence, the gradient waveform generating unit generates gradient waveforms according to the hardware parameter sequence, and the radio frequency receiving unit converts the received analog magnetic resonance signal into digital magnetic resonance data according to the hardware parameter sequence and sends it to the management and switching equipment.
[0198] The management and switching equipment sends digital magnetic resonance data to the scan control computer according to the data type of the digital magnetic resonance data.
[0199] The scanning control computer and the image reconstruction computer reconstruct image data based on the digital magnetic resonance data and send it to the scanning host to be displayed on the user interface.
[0200] Alternatively, when a computer program is executed by a processor, it may also perform the following steps:
[0201] The scanning control computer creates corresponding processes based on the hardware device configuration list to manage and operate the hardware devices, specifically including:
[0202] The self-managed switching device reads the hardware device configuration list and checks whether the current hardware device configuration meets the system's operating requirements.
[0203] Create virtual devices corresponding to the hardware devices based on the hardware device configuration list, which are used by the upper-level scanning software in the scanning control computer to access the hardware devices.
[0204] By setting the enable register for the management switching device, the magnetic resonance spectrometer enters the ready state.
[0205] Alternatively, when a computer program is executed by a processor, it may also perform the following steps:
[0206] The management and switching equipment specifically includes switching units, management units, and data multiplexing units:
[0207] The switching unit switches the service data from the data port to the designated port according to the type of service data;
[0208] The management unit generates new signaling data and interprets the received signaling data;
[0209] The data multiplexing unit includes a data multiplexing subunit and a data demultiplexing subunit:
[0210] The data multiplexing subunit multiplexes the signaling data from the management unit and the service data from the switching unit onto the physical channel and sends them to the high-speed data interface;
[0211] The data demultiplexing subunit restores the data transmitted from the high-speed data interface of the physical channel into signaling data or service data, and sends them to the management unit or switching unit respectively.
[0212] Alternatively, when a computer program is executed by a processor, it may also perform the following steps:
[0213] Also includes:
[0214] When the data multiplexing unit receives signaling data and service data, it caches the service data.
[0215] The data multiplexing unit prioritizes sending signaling data to the high-speed data interface;
[0216] After the signaling data has been sent, the service data is then sent to the high-speed data interface.
[0217] If the data multiplexing unit receives new signaling data while sending service data, it will pause the transmission of service data and prioritize sending the new signaling data.
[0218] Alternatively, when a computer program is executed by a processor, it may also perform the following steps:
[0219] It also includes an execution device, which includes the radio frequency receiving unit, the radio frequency transmitting unit, and the gradient waveform generating unit. Specifically, the execution device includes the execution unit:
[0220] The management unit receives a message from the execution unit of the physical link requesting a registered device number and performs the operation of saving the device number;
[0221] The management unit sends a message to the execution unit that it has received the device number request;
[0222] The management unit receives a message from the execution unit requesting the registration of a device type and performs the operation of saving the device type;
[0223] The management unit sends a message to the execution unit indicating that the device type has been received;
[0224] The management unit sends a message to the execution unit indicating that the physical link registration was successful;
[0225] After all physical links have been successfully registered, the management unit sends a system-ready message to the execution unit.
[0226] Alternatively, when a computer program is executed by a processor, it may also perform the following steps:
[0227] Also includes:
[0228] The management unit sends a link maintenance heartbeat message to the execution unit;
[0229] After receiving the message, the execution unit replies to the management unit with a message that the link maintenance heartbeat has been received;
[0230] The management unit receives a message indicating that the link is maintaining a heartbeat, signifying that the link status is normal.
[0231] If the management unit does not receive a link maintenance heartbeat message within the set time, the management unit will enter an error state and broadcast a system error message.
[0232] If the management unit receives the link maintenance heartbeat message within the set time, the management unit will resend the link maintenance heartbeat message to the execution unit;
[0233] After receiving the message, the execution unit replies to the management unit with a message that the link maintenance heartbeat has been received;
[0234] If the execution unit does not receive the message within the set time, the execution unit will enter an error state;
[0235] If the execution unit receives the system error message, the execution unit will enter an error state.
[0236] Computer-readable storage media include: permanent and non-permanent, removable and non-removable media, which are tangible devices capable of retaining and storing instructions for use by an instruction execution device. Computer-readable storage media include: electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, and any suitable combination thereof. Computer-readable storage media include: phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, optical disc read-only memory (CD-ROM), digital versatile optical disc (DVD) or other optical storage, magnetic tape storage, magnetic disk storage or other magnetic storage devices, memory sticks, mechanical encoding devices (e.g., punched cards or raised structures in grooves on which instructions are recorded), or any other non-transfer medium that can be used to store information accessible by a computing device. As defined in the embodiments of the present invention, computer-readable storage media do not include temporary signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses passing through fiber optic cables), or electrical signals transmitted through wires.
[0237] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0238] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this invention can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described in terms of functionality in the foregoing description. When implemented in software, it can be implemented wholly or partially in the form of a computer program product. The computer program product includes one or more computer program instructions. The computer program instructions include: assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, integrated circuit configuration data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk and C++, and procedural programming languages such as C or similar programming languages.
[0239] When the computer program instructions are loaded and executed on a computer, all or part of the process or function described in the embodiments of the present invention is generated. The computer may be a computer, a dedicated computer, a computer network, or other editable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, twisted pair, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (e.g., floppy disk, magnetic disk, magnetic tape), an optical medium (e.g., optical disc), or a semiconductor medium (e.g., solid state drive (SSD)). Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of the embodiments of the present invention.
[0240] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing embodiments of the present invention, and will not be repeated here.
[0241] In the several embodiments provided in this application, it should be understood that the disclosed apparatus, electronic devices, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, or it may be an electrical, mechanical, or other form of connection.
[0242] 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; they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to solve the problems addressed by the embodiments of the present invention, depending on actual needs.
[0243] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0244] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present invention, in essence, or the part that contributes to the prior art, or all or 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 (including: a personal computer, a server, a data center, or other network device) 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 listed above that can store program code.
[0245] The above description is merely a specific implementation of the embodiments of the present invention, but the protection scope of the embodiments of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of the present invention should be included within the protection scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention should be determined by the protection scope of the claims.
Claims
1. A method for accessing a magnetic resonance spectrometer, characterized in that, Includes scanning host, management and switching equipment, scanning control computer, and image reconstruction computer: The management switching device generates a hardware device configuration list based on the acquired hardware device connection information and reports it to the scanning control computer. The scanning control computer creates a corresponding process based on the hardware device configuration list to manage the hardware device. The scanning host generates a scanning sequence from the received user input and sends it to the scanning control computer; The scanning control computer compiles the scanning sequence into a hardware parameter sequence and sends it to the management and switching device; The management switching device exchanges the hardware parameter sequence to the radio frequency receiving unit, radio frequency transmitting unit, and gradient waveform generation unit according to the data type of the hardware parameter sequence; the management switching device specifically includes a switching unit, a management unit, and a data multiplexing unit. The switching unit switches the service data from the data port to the designated port according to the category of the service data; The management unit generates new signaling data and interprets the received signaling data; The data multiplexing unit includes a data multiplexing subunit and a data demultiplexing subunit: The data packet formats for the service data and the signaling data are predefined as service data packets and signaling data packets, and the signaling data packets are set to a fixed length; wherein the signaling data packets and the service data packets are distinguished by different data packet headers; The data multiplexing subunit multiplexes the signaling data of the management unit and the service data of the switching unit onto the physical channel and sends them to the high-speed data interface; The data demultiplexing subunit restores the data transmitted from the high-speed data interface of the physical channel into the signaling data or service data, and sends them to the management unit or the switching unit respectively; the restoration includes: taking a fixed length of data from the header of the signaling data packet as the entire signaling data packet; during the restoration of the service data packet, if the signaling data packet is encountered, the fixed length of data is removed as the signaling data, and the subsequent data continues to be used as the data of the service data packet; The radio frequency transmitting unit generates a radio frequency waveform according to the hardware parameter sequence, the gradient waveform generating unit generates a gradient waveform according to the hardware parameter sequence, and the radio frequency receiving unit converts the received analog magnetic resonance signal into digital magnetic resonance data according to the instruction of the hardware parameter sequence and sends it to the management and switching device. The management and switching device sends the digital magnetic resonance data to the scan control computer according to the data type of the digital magnetic resonance data; The scanning control computer and the image reconstruction computer reconstruct image data based on the digital magnetic resonance data and send it to the scanning host for display on the user interface.
2. The method according to claim 1, characterized in that, The scanning control computer creates corresponding processes based on the hardware device configuration list to manage the hardware devices, specifically including: The management switching device reads the hardware device configuration list and checks whether the current hardware device configuration meets the system's operating requirements. A virtual device corresponding to the hardware device is created according to the hardware device configuration list, which is used by the upper-level scanning software in the scanning control computer to access the hardware device. By setting the enable register of the management switching device, the magnetic resonance spectrometer enters the ready state.
3. The method according to claim 1, characterized in that, Also includes: When the data multiplexing unit receives the signaling data and service data, it caches the service data. The data multiplexing unit prioritizes sending the signaling data to the high-speed data interface; After the signaling data has been sent, the service data is then sent to the high-speed data interface. If the data multiplexing unit receives new signaling data while transmitting the service data, it will pause the transmission of the service data and prioritize the transmission of the new signaling data.
4. The method according to claim 1, characterized in that, It also includes an execution device, which comprises the radio frequency receiving unit, the radio frequency transmitting unit, and the gradient waveform generating unit. Specifically, the execution device includes an execution unit: The management unit receives a registration device number request message sent by the execution unit from the physical link, and performs the operation of saving the device number; The management unit sends a message to the execution unit that it has received the device number request; The management unit receives a message from the execution unit requesting a registration device type and performs an operation to save the device type; The management unit sends a message to the execution unit indicating that it has received the device type; The management unit sends a message to the execution unit indicating that the physical link registration was successful; After all the physical links have been successfully registered, the management unit sends a system ready message to the execution unit.
5. The method according to claim 4, characterized in that, Also includes: The management unit sends a link maintenance heartbeat message to the execution unit; After receiving the message, the execution unit replies to the management unit with a message that the link maintenance heartbeat has been received; The management unit receives the message indicating that the link is maintaining a heartbeat, indicating that the link status is normal. If the management unit does not receive the received link maintenance heartbeat message within a set time, the management unit will enter an error state and broadcast a system error message; If the management unit receives the received link maintenance heartbeat message within a set time, the management unit will resend the link maintenance heartbeat message to the execution unit; After receiving the message, the execution unit replies to the management unit with a message that the link maintenance heartbeat has been received; If the execution unit does not receive the message within the set time, the execution unit will enter an error state; If the execution unit receives a system error message, the execution unit will enter an error state.
6. A magnetic resonance spectrometer, characterized in that, Includes scanning host, management and switching equipment, scanning control computer, and image reconstruction computer: The management and switching device is used to generate a hardware device configuration list table based on the acquired hardware device connection information and report it to the scanning control computer; to exchange the hardware parameter sequence to the radio frequency receiving unit, radio frequency transmitting unit, and gradient waveform generating unit according to the data type of the hardware parameter sequence; and to send the digital magnetic resonance data to the scanning control computer according to the data type of the digital magnetic resonance data. The management and switching equipment specifically includes a switching unit, a management unit, and a data multiplexing unit. The data multiplexing unit includes a data multiplexing subunit and a data demultiplexing subunit. The switching unit is used to switch the service data of the data port to the designated port according to the category of the service data; The management unit is used to generate new signaling data and interpret the received signaling data; The service data and the signaling data adopt the data formats of service data packets and signaling data packets, respectively, and the signaling data packets are set to a fixed length; the signaling data packets and the service data packets are distinguished by different data packet headers; The data multiplexing subunit is used to multiplex the signaling data of the management unit and the service data of the switching unit onto the physical channel and send them to the high-speed data interface. The data demultiplexing subunit is used to restore the data transmitted from the high-speed data interface of the physical channel into the signaling data or service data, and send them to the management unit or the switching unit respectively; the restoration includes: taking a fixed length of data from the header of the signaling data packet as the entire signaling data packet; during the restoration of the service data packet, if the signaling data packet is encountered, the fixed length of data is removed as the signaling data, and the subsequent data continues to be used as the data of the service data packet; The scanning control computer is used to create corresponding processes to manage the hardware devices according to the hardware device configuration list; compile the scanning sequence into a hardware parameter sequence and send it to the management exchange device; and the image reconstruction computer reconstructs image data according to the digital magnetic resonance data and sends it to the scanning host to be displayed on the user interface. The scanning host is used to generate a scanning sequence from the received user input and send it to the scanning control computer; The radio frequency transmitting unit is used to generate radio frequency waveforms according to the hardware parameter sequence; The gradient waveform generation unit is used to generate a gradient waveform according to the hardware parameter sequence; The radio frequency receiving unit is used to convert the received analog magnetic resonance signal into digital magnetic resonance data according to the instructions of the hardware parameter sequence and send it to the management switching device.
7. The magnetic resonance spectrometer according to claim 6, characterized in that, The scanning control computer includes: The configuration verification module is used to read the hardware device configuration list from the management switching device and verify whether the current hardware device configuration meets the system's operating requirements. The device creation module is used to create virtual devices corresponding to the hardware devices according to the hardware device configuration list, which are used by the upper-level scanning software in the scanning control computer to access the hardware devices. The enable setting module is used to set the enable register of the management switching device, and the magnetic resonance spectrometer enters the ready state.
8. The magnetic resonance spectrometer according to claim 6, characterized in that, Also includes: The data multiplexing unit is used to cache the service data when it receives the signaling data and service data; The signaling data is sent to the high-speed data interface first; after the signaling data is sent, the service data is sent to the high-speed data interface; if new signaling data is received during the transmission of the service data, the transmission of the service data will be paused and the new signaling data will be sent first.
9. The magnetic resonance spectrometer according to claim 6, characterized in that, It also includes an execution device, which comprises the radio frequency receiving unit, the radio frequency transmitting unit, and the gradient waveform generating unit. Specifically, the execution device includes an execution unit: The management unit is configured to receive a device number registration request message sent by the execution unit of the physical link, and perform the operation of saving the device number; send a message to the execution unit that the device number request has been received; receive a device type registration request message sent by the execution unit, and perform the operation of saving the device type; send a message to the execution unit that the device type has been received; send a message to the execution unit that the physical link registration has been successful; and after all physical links have been successfully registered, send a system ready message to the execution unit.
10. The magnetic resonance spectrometer according to claim 9, characterized in that, Also includes: The management unit is used to send a link maintenance heartbeat message to the execution unit; receiving the link maintenance heartbeat message indicates that the link status is normal. If the received link maintains heartbeat message is not received within the set time, an error state will be entered and a system error message will be broadcast. If the link maintenance heartbeat message is received within the set time, the link maintenance heartbeat message will be resent to the execution unit. The execution unit is configured to reply to the management unit after receiving the message that the link maintenance heartbeat has been received; After receiving the message, reply to the management unit that you have received the link maintenance heartbeat message; If the message is not received within the set time, the system will enter an error state; if the system receives the error message, the system will enter an error state.
11. A magnetic resonance spectrometer, comprising a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the transceiver, the memory, and the processor are connected via the bus, characterized in that, When the computer program is executed by the processor, it implements the steps in the magnetic resonance spectrometer access method as described in any one of claims 1 to 5.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps in the magnetic resonance spectrometer access method as described in any one of claims 1 to 5.