Magnetic resonance data transmission method and apparatus, storage medium, and electronic device
By issuing instructions to the magnetic resonance equipment according to the execution cycle and transmitting downlink and uplink data in two timer cycles, the problem of not being able to update sequence parameters in real time in the existing technology is solved, and real-time parameter updates and data transmission of the magnetic resonance equipment are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 上海电气控股集团有限公司
- Filing Date
- 2023-04-21
- Publication Date
- 2026-06-19
Smart Images

Figure CN116436583B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of magnetic resonance, and more specifically, to a magnetic resonance data transmission method, apparatus, storage medium, and electronic device. Background Technology
[0002] Before the magnetic resonance imaging (MRI) sequence begins execution, the MRI software needs to translate the pre-defined sequence parameters into hardware execution instructions. Then, all hardware instructions to be executed in this sequence are pre-downloaded into the hardware cache. MRI equipment is designed with a large cache space reserved for storing these instructions. Once all the sequence instructions are cached in the hardware cache, the sequence begins execution, and the sequence parameters cannot be changed during the sequence. Therefore, when sequence parameters need to be updated during the scan, the downlink data channel does not support real-time transmission of sequence parameters.
[0003] In clinical applications, echo navigation technology offers the advantage of real-time data transmission from MRI equipment. Echo navigation measures diaphragmatic movement caused by respiration. Before each sequence command required for imaging is issued, one or more execution commands for the echo navigation module are sent to the hardware to measure the current position of the diaphragm and calculate its location to determine whether to trigger the sequence scan. During sequence execution, there are pauses where callback functions readjust the parameters for the next sequence. Therefore, the current execution method of related technologies—translating sequence parameters into hardware commands before execution and sending all commands to the hardware—cannot meet the requirement of real-time parameter updates during sequence scanning, thus failing to meet the real-time clinical application needs of echo navigation.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This application provides a magnetic resonance data transmission method, apparatus, storage medium, and electronic device to at least solve the technical problem that parameters cannot be updated in real time during scanning due to the execution method of issuing all magnetic resonance sequence commands in related technologies.
[0006] According to one aspect of the embodiments of this application, a magnetic resonance data transmission method is provided, comprising: acquiring downlink data to be sent to a magnetic resonance device, wherein the downlink data includes hardware instructions; dividing the downlink data according to an execution cycle to obtain multiple sub-instructions, wherein only one sub-instruction is sent in each execution cycle, wherein the execution cycle includes: in response to a first interrupt request from the magnetic resonance device for a first timer, transmitting the downlink data in the sub-instruction to the magnetic resonance device, wherein the downlink data is used to control the magnetic resonance device to scan the object to be scanned; starting a timer at the end of the downlink data transmission, and receiving a second interrupt request from a second timer when the timer duration reaches a preset duration, and in response to the second interrupt request, sending an indication message allowing the uplink data to be uploaded to the magnetic resonance device, wherein the uplink data is used to image the object to be scanned.
[0007] Optionally, after receiving the second interrupt request from the second timer, the process includes: determining the storage space required for the uplink data; and storing the uplink data according to the storage space.
[0008] Optionally, determining the storage space required for uplink data includes: determining the quotient of the maximum uplink data transmission rate and the predetermined time; determining the product of the quotient and the execution cycle, the product being the maximum uplink data cache requirement space, and using the maximum uplink data cache requirement space as the storage space.
[0009] Optionally, the preset duration is determined by: determining the first timer period corresponding to the first timer, determining the second timer period corresponding to the second timer; determining the sum of the first timer period and the second timer period; calculating the product of the sum and the preset ratio to obtain the preset duration.
[0010] Optionally, the method further includes: the transmission priority of downlink data is greater than the transmission priority of uplink data.
[0011] Optionally, the method further includes: when transmitting downlink data, buffering uplink data in the buffer unit of the magnetic resonance device; and uploading uplink data after the downlink data transmission is completed.
[0012] Optionally, it also includes: a first timer period, a waiting time, and a second timer period constitute a complete execution cycle, wherein the second timer period is longer than the first timer period, and the waiting time is a preset duration.
[0013] Optionally, the method further includes: a first timer cycle starting at the receipt of a first interrupt request and ending at the end of the next data transmission; and a second timer cycle starting at the receipt of a second interrupt request and ending at the end of the previous data upload.
[0014] According to another aspect of the embodiments of this application, a magnetic resonance data transmission device is also provided, comprising: an acquisition module for acquiring downlink data to be sent to a magnetic resonance device; a division module for dividing the downlink data according to an execution cycle to obtain multiple sub-instructions, and sending only one sub-instruction in each execution cycle; a first timer module for transmitting the downlink data in the sub-instruction to the magnetic resonance device in response to a first interrupt request from the magnetic resonance device for the first timer, wherein the downlink data is used to control the magnetic resonance device to scan the object to be scanned; and a second timer module for starting timing at the end of the downlink data transmission, and receiving a second interrupt request from the second timer when the timing duration reaches a preset duration, and sending an indication message allowing the uplink data to be uploaded to the magnetic resonance device in response to the second interrupt request, wherein the uplink data is used to image the object to be scanned.
[0015] According to another aspect of the embodiments of this application, a non-volatile storage medium is also provided, comprising: the storage medium including a stored program, wherein, when the program is running, it controls the device where the storage medium is located to execute any magnetic resonance data transmission method.
[0016] According to another aspect of the embodiments of this application, an electronic device is also provided, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement any magnetic resonance data transmission method.
[0017] In this embodiment, the method of issuing magnetic resonance imaging (MRI) device instructions according to an execution cycle is adopted. Each execution cycle is divided into two timer cycles, and downlink and uplink data are transmitted in the two cycles respectively. Downlink data to be sent to the MRI device is obtained, including hardware instructions. The downlink data is divided into multiple sub-instructions according to the execution cycle, and only one sub-instruction is sent in each execution cycle. In response to a first interrupt request from the MRI device for the first timer, the downlink data in the sub-instruction is transmitted to the MRI device. Timing starts at the end of the downlink data transmission, and when the timing reaches a preset duration, a second interrupt request from the second timer is received. In response to the second interrupt request, an indication message allowing uplink data to be uploaded is sent to the MRI device. This achieves the purpose of real-time updating of sequence parameters, thereby reducing the time required for the MRI software to recompile hardware instructions according to the sequence parameters after real-time updating of sequence parameters. This solves the technical problem that the execution method in related technologies, which issues all MRI sequence instructions, cannot update parameters in real time during scanning. Attached Figure Description
[0018] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments of this application and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0019] Figure 1 This is a schematic flowchart of a magnetic resonance data transmission method according to an embodiment of this application;
[0020] Figure 2 This is a schematic diagram of a timer implementation according to an embodiment of this application;
[0021] Figure 3 This is a schematic diagram of a magnetic resonance downlink data transmission according to an embodiment of this application;
[0022] Figure 4 This is a schematic diagram of magnetic resonance uplink data transmission according to an embodiment of this application;
[0023] Figure 5 This is a schematic diagram of the structure of a magnetic resonance data transmission device according to an embodiment of this application;
[0024] Figure 6 This is a schematic block diagram of an example electronic device according to an embodiment of this application. Detailed Implementation
[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0027] According to an embodiment of this application, a method embodiment for magnetic resonance data transmission is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0028] Figure 1 This is a magnetic resonance data transmission method according to an embodiment of this application, such as... Figure 1 As shown, the method includes the following steps:
[0029] Step S102: Obtain downlink data to be sent to the magnetic resonance imaging device, wherein the downlink data includes hardware instructions;
[0030] Step S104: Divide the downlink data according to the execution cycle to obtain multiple sub-instructions, and send only one sub-instruction in each execution cycle;
[0031] Step S106: In response to a first interrupt request from the magnetic resonance device for the first timer, the downlink data in the sub-instruction is transmitted to the magnetic resonance device, wherein the downlink data is used to control the magnetic resonance device to scan the object to be scanned;
[0032] It is understandable that the object to be scanned is a part of the human body, such as the diaphragm in the process of measuring the movement of the diaphragm caused by breathing.
[0033] Step S108: Start timing at the end of downlink data transmission, and when the timing duration reaches the preset duration, receive a second interrupt request from the second timer. In response to the second interrupt request, send an indication message to the magnetic resonance device allowing uplink data to be uploaded, wherein the uplink data is used to image the object to be scanned.
[0034] In this embodiment, the method of issuing magnetic resonance imaging (MRI) device instructions according to an execution cycle is adopted. Each execution cycle is divided into two timer cycles, and downlink and uplink data are transmitted in the two cycles respectively. Downlink data to be sent to the MRI device is acquired; the downlink data is divided into multiple sub-instructions according to the execution cycle, and only one sub-instruction is sent in each execution cycle; in response to the first interrupt request from the MRI device for the first timer, the downlink data in the sub-instruction is transmitted to the MRI device; timing starts at the end of the downlink data transmission, and when the timing duration reaches the preset duration, a second interrupt request from the second timer is received. In response to the second interrupt request, an indication message allowing uplink data to be uploaded is sent to the MRI device, thereby achieving the purpose of real-time updating of sequence parameters. This reduces the time required for the MRI software to recompile hardware instructions based on the sequence parameters after real-time updating of sequence parameters, and solves the technical problem that the execution method in related technologies, which issues all MRI sequence instructions, cannot update parameters in real time during scanning.
[0035] In some optional embodiments of this application, after receiving a second interrupt request from a second timer, the process includes: determining the storage space required for the uplink data; and storing the uplink data according to the storage space.
[0036] Optionally, determining the storage space required for uplink data includes: determining the quotient of the maximum uplink data transmission rate and the predetermined time; determining the product of the quotient and the execution cycle, the product being the maximum uplink data cache requirement space, and using the maximum uplink data cache requirement space as the storage space.
[0037] It should be noted that the scheduled time is 1 second.
[0038] For example, suppose the execution cycle of Timer 1 is 100µs and the waiting time is 5µs, and the execution cycle of Timer 2 is 900µs. Each alternating execution of Timer 1, the waiting time, and Timer 2 constitutes a complete execution cycle, which is 1005µs. If the maximum uplink data transfer rate is 4Gbps, then the maximum uplink data buffer space required is (4G / 1000000)*1005 = 4.02Mbits.
[0039] Understandably, caching uplink data requires a certain margin of safety, which can be determined by setting the data bit width and cache depth. For example, the data bit width of the uplink cache FIFO can be set to 250K, and the cache depth can be set to 32 bits to meet the caching requirements of uplink data in one execution cycle.
[0040] In an exemplary embodiment of this application, the preset duration is determined by: determining the first timer period corresponding to the first timer, determining the second timer period corresponding to the second timer; determining the sum of the first timer period and the second timer period; calculating the product of the sum and a preset ratio to obtain the preset duration.
[0041] It should be noted that the preset ratio is any number within the range of 2% to 5%.
[0042] For example, assuming the execution period of timer 1 is 100us, the execution period of timer 2 is 900us, and the preset value is 5%, then the waiting time is 5us.
[0043] As an optional implementation, the method further includes: the transmission priority of downlink data is greater than the transmission priority of uplink data.
[0044] It should be noted that downlink data includes, but is not limited to: radio frequency pulse control commands, gradient waveform control commands, and radio frequency received signal acquisition parameters; uplink data includes, but is not limited to: the real and imaginary parts of the digitally quantized magnetic resonance induction signal, hardware status indicators, and hardware anomaly feedback information.
[0045] It should be noted that downlink data refers to data transmission from application software to the driver and magnetic resonance device; uplink data refers to data transmission from the magnetic resonance device to the driver and application software.
[0046] In some optional embodiments of this application, the method further includes: when transmitting downlink data, caching uplink data in the buffer unit of the magnetic resonance device; and uploading uplink data after the downlink data transmission is completed.
[0047] It is understandable that when data is coming down, the magnetic resonance system will prioritize the transmission of downlink data. After the transmission of the current pending instruction is completed, the uplink data that is currently in the hardware waiting queue will be started for uploading. The uplink data is cached in the hardware uplink cache unit.
[0048] In an exemplary embodiment of this application, the method further includes: a first timer period, a waiting time, and a second timer period constituting a complete execution cycle, wherein the second timer period is longer than the first timer period, and the waiting time is a preset duration.
[0049] Optionally, the method further includes: a first timer cycle starting at the receipt of a first interrupt request and ending at the end of the next data transmission; and a second timer cycle starting at the receipt of a second interrupt request and ending at the end of the previous data upload.
[0050] To facilitate a better understanding of the technical solutions of this application by those skilled in the art, a specific embodiment will now be described.
[0051] Figure 2 This is a schematic diagram of a timer implementation according to an embodiment of this application, as shown below. Figure 2 As shown, the timer mainly includes the following steps:
[0052] (1) The magnetic resonance software scans a complete sequence of instructions, and divides the required downlink data into multiple sub-instructions according to the cycle. In each execution cycle, the magnetic resonance software sends a sub-instruction to the magnetic resonance device, wherein the downlink data includes hardware instructions.
[0053] It should be noted that the downlink data sent should not be cached in the hardware instruction cache of the magnetic resonance device for too much data. Specifically, the cache should be less than 256KB and the instruction execution time should not exceed 20ms.
[0054] Understandably, during sequence execution, the MRI device only needs to store a small number of sub-instructions. At the same time, when the MRI sequence needs to adjust the sequence parameters in real time during scanning, the adjusted instructions are subsequently sent to the MRI device cache and executed in real time.
[0055] (2) When Timer 1 (i.e. the first timer mentioned above) starts, the magnetic resonance device sends a timer interrupt request (i.e. the first interrupt request mentioned above) to the magnetic resonance software through the driver, and sends the interrupt request type to the magnetic resonance software, wherein the interrupt request type is Timer 1;
[0056] (3) After receiving the interrupt request (i.e. the first interrupt request mentioned above), the magnetic resonance software will clear the interrupt request (i.e. the first interrupt request mentioned above) and promptly transmit the downlink data in the sub-instruction to be transmitted downlink to the magnetic resonance device.
[0057] It should be noted that downlink data transmission has a higher priority than uplink data transmission.
[0058] It is understandable that when data is coming down, the magnetic resonance system will prioritize the transmission of downlink data. After the transmission of the current pending instruction is completed, the uplink data that is currently in the hardware waiting queue will be started for uploading. The uplink data is cached in the hardware uplink cache unit.
[0059] (4) After the downlink data transmission is completed, wait for a period of time, which is the preset duration mentioned above. The timer period is 2%-5% of the sum of the timer period 1 (i.e. the first timer period mentioned above) and the timer period 2 (i.e. the second timer period mentioned above).
[0060] (5) After the time period ends, timer 2 (i.e. the second timer mentioned above) is started. The magnetic resonance device sends a timer interrupt request (i.e. the second interrupt request mentioned above) to the magnetic resonance software through the driver and sends the interrupt request type to the software, wherein the interrupt request type is timer 2;
[0061] (6) After receiving the interrupt request (i.e. the second interrupt request mentioned above), the magnetic resonance software determines the storage space for receiving uplink data from the hardware and sends an instruction to the magnetic resonance device to allow uplink data transmission through the driver.
[0062] (7) After receiving the instruction, the magnetic resonance equipment transmits the uplink data cached in the hardware uplink cache unit to the magnetic resonance software.
[0063] It should be noted that a complete execution cycle consists of a first timer cycle, a waiting time, and a second timer cycle, which triggers the transmission of downlink and uplink data within a cycle, respectively.
[0064] It is noteworthy that this application issues magnetic resonance equipment instructions according to the execution cycle, decomposes the transmission process of uplink and downlink data into a periodic transmission cycle of uplink and downlink data, and each execution cycle is divided into two timer cycles. The transmission of downlink and uplink data is realized in the two cycles respectively, which satisfies the requirement of real-time update of sequence parameters of magnetic resonance.
[0065] Figure 3 This is a schematic diagram of a magnetic resonance downlink data transmission according to an embodiment of this application, as shown below. Figure 3 As shown, the main steps include the following:
[0066] (1) The magnetic resonance software scans a complete sequence of instructions, and divides the required downlink data into multiple sub-instructions according to the cycle. In each execution cycle, the magnetic resonance software sends a sub-instruction to the magnetic resonance device, wherein the downlink data includes hardware instructions.
[0067] (2) When Timer 1 (i.e. the first timer mentioned above) starts, the magnetic resonance device sends a timer interrupt request (i.e. the first interrupt request mentioned above) to the magnetic resonance software through the driver, and sends the interrupt request type to the magnetic resonance software;
[0068] (3) After receiving the interrupt request (i.e. the first interrupt request mentioned above), the magnetic resonance software will clear the interrupt request (i.e. the first interrupt request mentioned above) and promptly transmit the downlink data in the sub-instruction to be transmitted to the hardware execution unit of the magnetic resonance device. The hardware execution unit can control the magnetic resonance device to scan the object to be scanned.
[0069] Figure 4This is a schematic diagram of magnetic resonance uplink data transmission according to an embodiment of this application, as shown below. Figure 4 As shown, the main steps include the following:
[0070] (1) After the downlink data transmission is completely finished and the waiting time has also ended, acquire the data collected by the magnetic resonance device;
[0071] (2) Start Timer 2 (i.e., the second timer mentioned above), and the magnetic resonance device sends a timer interrupt request (i.e., the second interrupt request mentioned above) to the magnetic resonance software through the driver.
[0072] (3) After receiving the interrupt request (i.e. the second interrupt request mentioned above), the magnetic resonance software determines the storage space for receiving uplink data from the hardware and sends an instruction to the magnetic resonance device to allow uplink data transmission through the driver.
[0073] (4) After receiving the instruction, the magnetic resonance equipment transmits the uplink data cached in the hardware uplink cache unit to the reconstruction processing unit of the magnetic resonance software, wherein the reconstruction processing unit is used to image the part to be tested.
[0074] Figure 5 This is a schematic diagram of the structure of a magnetic resonance data transmission device according to an embodiment of this application, as shown below. Figure 5 As shown, the device includes:
[0075] The acquisition module 50 is used to acquire downlink data to be sent to the magnetic resonance device, wherein the downlink data includes hardware instructions;
[0076] The segmentation module 52 is used to divide the downlink data according to the execution cycle to obtain multiple sub-instructions, and only one sub-instruction is sent in each execution cycle;
[0077] The first timer module 54 is used to respond to a first interrupt request from the magnetic resonance device for the first timer and transmit downlink data in the sub-instruction to the magnetic resonance device, wherein the downlink data is used to control the magnetic resonance device to scan the object to be scanned;
[0078] The second timer module 56 is used to start timing at the end of downlink data transmission, and when the timing duration reaches a preset duration, to receive a second interrupt request from the second timer, and in response to the second interrupt request, to send an indication message to the magnetic resonance device allowing the uplink data to be uploaded, wherein the uplink data is used to image the object to be scanned.
[0079] In this device, the acquisition module 50 is used to acquire downlink data to be sent to the magnetic resonance imaging (MRI) device, wherein the downlink data includes hardware instructions; the partitioning module 52 is used to partition the downlink data according to the execution cycle to obtain multiple sub-instructions, and only one sub-instruction is sent in each execution cycle; the first timer module 54 is used to transmit the downlink data in the sub-instruction to the MRI device in response to a first interrupt request from the MRI device for the first timer, wherein the downlink data is used to control the MRI device to scan the object to be scanned; the second timer module 56 is used to start timing at the end of the downlink data transmission, and when the timing duration reaches a preset duration, to receive a second interrupt request from the second timer, and in response to the second interrupt request, to send an indication message to the MRI device allowing the uplink data to be uploaded, wherein the uplink data is used to image the object to be scanned, thereby achieving the purpose of real-time updating of sequence parameters. This achieves the technical effect of reducing the time required for the MRI software to recompile hardware instructions according to the sequence parameters after real-time updating of sequence parameters, and thus solves the technical problem that the parameters cannot be updated in real time during the scanning period due to the execution method of sending all MRI sequence instructions in related technologies.
[0080] According to another aspect of the embodiments of this application, a non-volatile storage medium is also provided, the non-volatile storage medium including a stored program, wherein, when the program is running, it controls the device where the non-volatile storage medium is located to execute any magnetic resonance data transmission method.
[0081] Specifically, the aforementioned storage medium is used to store program instructions for the following functions, thereby implementing the following functions:
[0082] The system acquires downlink data to be sent to the magnetic resonance imaging (MRI) device, including hardware instructions; divides the downlink data into multiple sub-instructions according to the execution cycle, and sends only one sub-instruction in each execution cycle; in response to a first interrupt request from the MRI device for a first timer, transmits the downlink data in the sub-instruction to the MRI device; starts timing at the end of the downlink data transmission, and when the timing duration reaches a preset duration, receives a second interrupt request from a second timer, and in response to the second interrupt request, sends an indication message to the MRI device allowing the uplink data to be uploaded.
[0083] Optionally, in this embodiment, the storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specific examples of the storage medium include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0084] In an exemplary embodiment of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements any of the above-described magnetic resonance data transmission methods.
[0085] Optionally, when executed by a processor, the computer program may perform the following steps:
[0086] The system acquires downlink data to be sent to the magnetic resonance imaging (MRI) device, including hardware instructions; divides the downlink data into multiple sub-instructions according to the execution cycle, and sends only one sub-instruction in each execution cycle; in response to a first interrupt request from the MRI device for a first timer, transmits the downlink data in the sub-instruction to the MRI device; starts timing at the end of the downlink data transmission, and when the timing duration reaches a preset duration, receives a second interrupt request from a second timer, and in response to the second interrupt request, sends an indication message to the MRI device allowing the uplink data to be uploaded.
[0087] An electronic device is provided according to an embodiment of this application, the electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform any of the above-described magnetic resonance data transmission methods.
[0088] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0089] Figure 6This is a schematic block diagram of an example electronic device 600 according to an embodiment of this application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present application described and / or claimed herein.
[0090] like Figure 6 As shown, device 600 includes a computing unit 601, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 602 or a computer program loaded from storage unit 608 into random access memory (RAM) 603. RAM 603 may also store various programs and data required for the operation of device 600. The computing unit 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.
[0091] Multiple components in device 600 are connected to I / O interface 605, including: input unit 606, such as keyboard, mouse, etc.; output unit 607, such as various types of monitors, speakers, etc.; storage unit 608, such as disk, optical disk, etc.; and communication unit 609, such as network card, modem, wireless transceiver, etc. Communication unit 609 allows device 600 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0092] The computing unit 601 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as the magnetic resonance data transmission method. For example, in some embodiments, the magnetic resonance data transmission method can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program can be loaded and / or installed on device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the magnetic resonance data transmission method described above can be performed. Alternatively, in other embodiments, the computing unit 601 can be configured to perform the magnetic resonance data transmission method by any other suitable means (e.g., by means of firmware).
[0093] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0094] The program code used to implement the methods of this application may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0095] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0096] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0097] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0098] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0099] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0100] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0101] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0102] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0103] Furthermore, the functional units in the various embodiments of this application 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.
[0104] 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 this application, 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 (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.
[0105] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A magnetic resonance data transmission method, characterized in that, include: Acquire downlink data to be sent to the magnetic resonance imaging device, wherein the downlink data includes hardware instructions; The downlink data is divided according to the execution cycle to obtain multiple sub-instructions. In each execution cycle, only one sub-instruction is sent. The first timer period corresponding to the first timer, the waiting time, and the second timer period corresponding to the second timer constitute a complete execution cycle. The waiting time is a preset duration. In response to a first interrupt request from the magnetic resonance device for the first timer, the downlink data is transmitted to the magnetic resonance device, wherein the downlink data is used to control the magnetic resonance device to scan the object to be scanned; The timing starts at the end of the downlink data transmission, and when the timing duration reaches the preset duration, a second interrupt request of the second timer is received. In response to the second interrupt request, an indication message allowing the uplink data to be uploaded is sent to the magnetic resonance device, wherein the uplink data is used to image the object to be scanned.
2. The method according to claim 1, characterized in that, After receiving the second interrupt request from the second timer, the process includes: Determine the storage space required for the upstream data; The upstream data is stored in the storage space.
3. The method according to claim 2, characterized in that, Determining the storage space required for the upstream data includes: Determine the quotient between the maximum uplink data transfer rate and the predetermined time; The product of the quotient and the execution cycle is determined, and the product is the maximum required space of the uplink data cache, and the maximum required space of the uplink data cache is used as the storage space.
4. The method according to claim 1, characterized in that, The preset duration is determined in the following way: Determine the first timer period corresponding to the first timer, and determine the second timer period corresponding to the second timer; Determine the sum of the first timer period and the second timer period; The product of the sum and the preset ratio is calculated to obtain the preset duration.
5. The method according to claim 4, characterized in that, include: The second timer period is longer than the first timer period.
6. The method according to claim 4, characterized in that, The method further includes: the first timer period starts when the first interrupt request is received and ends when the downlink data transmission ends; the second timer period starts when the second interrupt request is received and ends when the uplink data upload ends.
7. The method according to claim 1, characterized in that, The method further includes: the transmission priority of the downlink data is greater than the transmission priority of the uplink data.
8. The method according to claim 1, characterized in that, The method further includes: When transmitting the downlink data, the uplink data is cached in the cache unit of the magnetic resonance device; After the downlink data transmission is completed, the uplink data is then uploaded.
9. A magnetic resonance data transmission device, characterized in that, include: The acquisition module is used to acquire downlink data to be sent to the magnetic resonance imaging equipment; The partitioning module is used to divide the downlink data according to the execution cycle to obtain multiple sub-instructions. Only one sub-instruction is sent in each execution cycle. The first timer period corresponding to the first timer, the waiting time, and the second timer period corresponding to the second timer constitute a complete execution cycle. The waiting time is a preset duration. A first timer module is configured to, in response to a first interrupt request from the magnetic resonance device for the first timer, transmit downlink data in the sub-instruction to the magnetic resonance device, wherein the downlink data is used to control the magnetic resonance device to scan the object to be scanned; The second timer module is used to start timing at the end of the downlink data transmission, and when the timing duration reaches the preset duration, to receive a second interrupt request from the second timer, and in response to the second interrupt request, to send an indication message to the magnetic resonance device allowing the uplink data to be uploaded, wherein the uplink data is used to image the object to be scanned.
10. A non-volatile storage medium, characterized in that, The storage medium includes a stored program, wherein, when the program is executed, it controls the device containing the storage medium to perform the magnetic resonance data transmission method according to any one of claims 1 to 8.
11. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the magnetic resonance data transmission method as described in any one of claims 1 to 8.