Summary of the invention
In view of this, the present invention provides a kind of system and method for realizing that data are transmitted in PET system, to solve existing skill
The technical issues of route existing for data transmission procedure and data-interface are complicated in art PET system, are unfavorable for the system integration.
To solve the above problems, technical solution provided by the invention is as follows:
A kind of system for realizing that data are transmitted in PET system, the system comprises n acquisition module, the n acquisition mould
Block includes n-th grade of acquisition module, i-stage acquisition module and the 1st grade of acquisition module, is serially connected between the n acquisition module
It connects;N is the integer greater than 1, and the value of i is respectively each integer for being greater than 1 and being less than within the scope of n;
N-th grade of acquisition module, for itself collected data to be sent to (n-1)th grade of acquisition module;
The i-stage acquisition module, for collect the data received from i+1 grade acquisition module with itself
Data carry out data investigation, and the superimposed data of i-stage acquisition module are sent to (i-1)-th grade of acquisition module;
The 1st grade of acquisition module, the number for collecting the data received from the 2nd grade of acquisition module with itself
According to carry out data investigation, the 1st grade of superimposed data of acquisition module are sent to host computer so that the host computer according to
It carries out meeting judgement from the 1st grade of received data of acquisition module.
Correspondingly, the 1st grade of acquisition module, is also used to receive command information from the host computer, believe from described instruction
The 1st grade of corresponding control instruction of acquisition module is obtained in breath, and described instruction information is sent to the 2nd grade of acquisition mould
Block;
The i-stage acquisition module is also used to receive described instruction information from (i-1)-th grade of acquisition module, from described instruction
The corresponding control instruction of the i-stage acquisition module is obtained in information, and described instruction information is sent to i+1 grade acquisition mould
Block;
N-th grade of acquisition module is also used to receive described instruction information from (n-1)th grade of acquisition module, from described instruction
The corresponding control instruction of n-th grade of acquisition module is obtained in information.
Correspondingly, being connected between the n acquisition module by serial bus serial, the universal serial bus includes send chain
Road and receives link;
The collected data of n-th grade of acquisition module itself, the superimposed data of the i-stage acquisition module and institute
The 1st grade of superimposed data of acquisition module are stated to be transmitted by the transmission link;
Described instruction information is transmitted by the receives link.
Correspondingly, the collected data of the acquisition module itself include timeslice, the address of acquisition module and data
Information.
Correspondingly, the superimposed data of i-stage acquisition module are will be from according to the sequence of addresses of each acquisition module
It is obtained after the data progress data investigation that the data that i+1 grade acquisition module receives are collected with itself;
The 1st grade of superimposed data of acquisition module will be adopted from the 2nd grade according to the sequence of addresses of each acquisition module
It is obtained after the data progress data investigation that the data that collection module receives are collected with itself.
A kind of method for realizing that data are transmitted in PET system, the method are applied to realize data transmission in PET system
System, the system comprises n acquisition module, the n acquisition module include n-th grade of acquisition module, i-stage acquisition module with
And the 1st grade of acquisition module, it is connected in series between the n acquisition module;N is the integer greater than 1, and the value of i is respectively to be greater than 1
And it is less than each integer within the scope of n;The described method includes:
Itself collected data is sent to (n-1)th grade of acquisition module by n-th grade of acquisition module;
The data that the i-stage acquisition module collects the data received from i+1 grade acquisition module with itself
Data investigation is carried out, the superimposed data of i-stage acquisition module are sent to (i-1)-th grade of acquisition module;
The data that the 1st grade of acquisition module collects the data received from the 2nd grade of acquisition module with itself into
The 1st grade of superimposed data of acquisition module are sent to host computer by row data investigation, so that the host computer is according to from institute
The 1st grade of received data of acquisition module are stated to carry out meeting judgement.
Correspondingly, the method also includes:
The 1st grade of acquisition module receives command information from the host computer, and the described 1st is obtained from described instruction information
The corresponding control instruction of grade acquisition module, is sent to the 2nd grade of acquisition module for described instruction information;
The i-stage acquisition module receives described instruction information from (i-1)-th grade of acquisition module, obtains from described instruction information
The corresponding control instruction of the i-stage acquisition module is taken, described instruction information is sent to i+1 grade acquisition module;
N-th grade of acquisition module receives described instruction information from (n-1)th grade of acquisition module, obtains from described instruction information
Take the corresponding control instruction of n-th grade of acquisition module.
Correspondingly, being connected between the n acquisition module by serial bus serial, the universal serial bus includes send chain
Road and receives link;
The collected data of n-th grade of acquisition module itself, the superimposed data of the i-stage acquisition module and institute
The 1st grade of superimposed data of acquisition module are stated to be transmitted by the transmission link;
Described instruction information is transmitted by the receives link.
Correspondingly, the collected data of the acquisition module itself include timeslice, the address of acquisition module and data
Information.
Correspondingly, the superimposed data of i-stage acquisition module are will be from according to the sequence of addresses of each acquisition module
It is obtained after the data progress data investigation that the data that i+1 grade acquisition module receives are collected with itself;
The 1st grade of superimposed data of acquisition module will be adopted from the 2nd grade according to the sequence of addresses of each acquisition module
It is obtained after the data progress data investigation that the data that collection module receives are collected with itself.
It can be seen that the embodiment of the present invention has the following beneficial effects:
The embodiment of the present invention connects each acquisition module using serial non-closed loop, and end acquisition module is collected by itself
Data are sent forward, after the data investigation that other each acquisition modules collect the data received with itself successively forward
The data that whole acquisition modules collect finally are sent to host computer and carry out meeting judgement, data are in transmission process by transmitting
In complete data summarization, be not necessarily to data summarization module and a large amount of data-interface, system connection structure is simple, utilizes system
System is integrated, and facilitates the extension of acquisition module quantity.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Mode is applied to be described in further detail the embodiment of the present invention.
In the prior art, realize PET system data transmission, need each acquisition module with data summarization module phase
Even, it after carrying out data summarization by data summarization module, transfers to meet processing module and carries out meeting judgement, be eventually transferred to host computer
Complete image reconstruction.It is also desirable to which the bus of other transmission instruction is connected with each acquisition module respectively, acquisition mould is completed
The relevant configuration of block and the state of acquisition module are read.But, if it is desired to the image for obtaining higher resolution then needs to make
With more acquisition modules, each acquisition module is connected with data summarizing module respectively, connection complexity and data summarization mould
Block needs a large amount of connecting interfaces, is unfavorable for the system integration, therefore traditional data transfer mode can not use this new need
It asks.Meanwhile with the development of technology, higher for the requirement of real-time, if it is desired to acquisition module can be completed faster
Data transmission is completed in configuration faster, and low speed bus used in PET system in the prior art is unable to satisfy this need
It asks.
For this purpose, the embodiment of the invention provides a kind of system and methods for realizing that data are transmitted in PET system, by PET system
Distributed acquisition module in system is connected by way of serial non-closed loop connection by high-speed serial bus, and universal serial bus includes
Two links of transmission link and receives link, transmission link carry out data transmission, receives link complete instruction transmission with
Realize the functions such as the configuration of acquisition module.Do not include other data summarization modules in the system, meet processing module, simplifies
System structure, relevant data summarization carry out data investigation completion by acquisition module in data transmission procedure step by step, guarantee
The integrality of data acquisition, the real-time of data processing.Meanwhile according in data transmission procedure data investigation formed it is specific
Data structure, can rapidly carry out meeting judgement in host computer, complete the processing for meeting data, present in real time relevant
Image.
It is shown in Figure 1 based on above-mentioned thought, it shows and realizes data transmission in PET system in the embodiment of the present invention
System embodiment one, the system may include n acquisition module, and n acquisition module includes n-th grade of acquisition module 101, i-stage
Acquisition module 102 and the 1st grade of acquisition module 103 are connected in series between n acquisition module;N is the integer greater than 1, and i's takes
Value is respectively each integer greater than 1 and being less than within the scope of n.
It in systems altogether include n acquisition module, the 1st grade of acquisition module is the acquisition module being connected with host computer, n-th
Grade acquisition module is the last one acquisition module in serial connection, and i-stage acquisition module is that the 1st grade of acquisition module is adopted with n-th grade
Collect the acquisition module between module.For example, n is 5, then the value of i is 2,3,4, in system altogether including the 1st grade of acquisition module,
2nd grade of acquisition module, 3rd level acquisition module, the 4th grade of acquisition module and the 5th grade of acquisition module totally 5 acquisition modules, are respectively adopted
Serially it is connected between collection module.
In some possible implementations of the invention, it can be connected by serial bus serial between n acquisition module
It connects, i.e. n acquisition module is attached in such a way that serial non-closed loop connects by universal serial bus, and universal serial bus is passed with data
The characteristics of defeated speed is fast, guarantees real-time property.Universal serial bus may include transmission link and receives link again, as shown in figure 1
Shown, dotted line indicates transmission link, and solid line indicates receives link.It is shown in Figure 2, show the adjacent acquisition module of any two
Between connection relationship diagram, transmission link (TXD, RXD) can be used for the transmission of data, and receives link (TXC, RXC) can
With the transmission for command information.From system perspective, it is only necessary to one group of universal serial bus, it can be by all acquisitions in system
Module links together, and system structure is simply easy to the system integration.
Wherein, n-th grade of acquisition module, for itself collected data to be sent to (n-1)th grade of acquisition module.
I-stage acquisition module, the data for collecting the data received from i+1 grade acquisition module with itself
Data investigation is carried out, the superimposed data of i-stage acquisition module are sent to (i-1)-th grade of acquisition module.
1st grade of acquisition module, data for collecting the data received from the 2nd grade of acquisition module with itself into
The 1st grade of superimposed data of acquisition module are sent to host computer by row data investigation, so that host computer is acquired according to from the 1st grade
The received data of module carry out meeting judgement.
In practical applications, the transmission of data is acquired when acquisition module works, in the driving of system clock beat
Under, by data from n-th grade of acquisition module successively to front transfer, each acquisition module in addition to n-th grade of acquisition module will be received
To data and the data of itself acquisition be overlapped and to form new data and continue finally to pass data to front transfer
In the machine of position, this process is the lossless superposition of data.
In some possible implementations of the invention, the collected data of acquisition module itself may include the time
Piece, the address of acquisition module and data information.The timeslice that timeslice can occur for collection event;Data information can wrap
Include data, such as temporal information, energy information required for meeting judgement etc..The superimposed data of i-stage acquisition module be by
The data collected the data received from i+1 grade acquisition module with itself according to the sequence of addresses of each acquisition module into
It is obtained after row data investigation;The 1st grade of superimposed data of acquisition module are will be from according to the sequence of addresses of each acquisition module
It is obtained after the data progress data investigation that the data that 2nd grade of acquisition module receives are collected with itself.That is data investigation
Data investigation can be carried out to the data that the data received are collected with itself according to the sequence of addresses of acquisition module.
In practical applications, in systems each acquisition module energy independent operating, completes the identification of photon signal.It is complete
After the identification of photon signal, event packet can be collected, may include timeslice, acquisition module in event packet
The details such as address, data (such as temporal information, energy information).Each acquisition module by collected event packet with
New data packet is generated after the data packet superposition received to transmit to previous stage acquisition module, is successively transmitted, in practical applications,
The content of the complete data packet eventually formed can be following format:
Timeslice |
Address 1 |
Data |
Timeslice |
Address 2 |
Data |
…… |
…… |
…… |
Timeslice |
Address i |
Data |
…… |
…… |
…… |
Timeslice |
Address n-1 |
Data |
Timeslice |
Address n |
Data |
In host computer, the data received from the 1st grade of acquisition module can be mapped in corresponding internal storage location, so
The processing for meeting event is carried out by processor afterwards.It, first can be by the number of piece at the same time when carrying out meeting the processing of event
A series of meet is formed then according to the address of acquisition module and the corresponding relationship of data according to a data combination is formed
Event, last basis meet event and form image.
In some possible implementations of the invention, the collected data of n-th grade of acquisition module itself, i-stage are adopted
The collection superimposed data of module and the 1st grade of superimposed data of acquisition module can be transmitted by transmission link.
That is itself collected data is sent to (n-1)th grade of acquisition module by transmission link by n-th grade of acquisition module;The
The superimposed data of i-stage acquisition module are sent to (i-1)-th grade of acquisition module by transmission link by i grades of acquisition modules;1st grade
The 1st grade of superimposed data of acquisition module are sent to host computer by transmission link by acquisition module.
In addition, in some possible implementations of the invention, the 1st grade of acquisition module is also used to receive from host computer
Command information obtains the 1st grade of corresponding control instruction of acquisition module from command information, command information is sent to the 2nd grade and is adopted
Collect module.
I-stage acquisition module is also used to receive command information from (i-1)-th grade of acquisition module, i-th is obtained from command information
The corresponding control instruction of grade acquisition module, is sent to i+1 grade acquisition module for command information.
N-th grade of acquisition module is also used to receive command information from (n-1)th grade of acquisition module, n-th is obtained from command information
The corresponding control instruction of grade acquisition module.
In practical applications, while acquisition module sends data, the reception of command information can also be carried out.Instruction letter
Breath may include address and the corresponding control instruction of each acquisition module of each acquisition module, such as command information can be
Following format:
Address 1 |
Control instruction 1 |
Address 2 |
Control instruction 2 |
…… |
…… |
Address i |
Control instruction i |
…… |
…… |
Address n-1 |
Control instruction n-1 |
Address n |
Control instruction n |
Each acquisition module unloads corresponding control instruction according to respective address, i.e., each acquisition module is according to command information
The control instruction for obtaining itself respectively completes relevant operation, such as the configuration of parameter list, shape according to corresponding control instruction
The feedback etc. of state information.
In addition, not only including to carry out required for meeting judgement in the data that acquisition module transmits according to control instruction
Data, while also may include according to the parameter information of the control instruction feedback received, such as temperature, voltage, electric current etc..
In some possible implementations of the invention, command information can be transmitted by receives link.
That is the 1st grade of acquisition module receives command information from host computer by receives link, and command information is passed through reception chain
Road is sent to the 2nd grade of acquisition module;I-stage acquisition module receives command information from (i-1)-th grade of acquisition module by receives link,
Command information is sent to i+1 grade acquisition module by receives link;N-th grade of acquisition module passes through receives link from (n-1)th
Grade acquisition module receives command information.
Since command information can also use the serial bus transmission of high speed, the purpose of high-speed configuration may be implemented.
The present embodiment is using the structure that the data transmission system of serial connection is that a non-closed loop connects, convenient for increasing acquisition
The data of module can set the acquisition module number of data transmission system according to the actual quantity of PET system acquisition module,
Data in system, successively to front transfer, are a unidirectional data transmission systems from end acquisition module.Command information transmission
Using same high-speed serial bus, the design difficulty of system is reduced, command information is transmitted using high-speed serial bus, is accelerated
The configuration speed of system parameter, accelerates the scanning process of PET system.And the system structure is simple, eliminates data summarization
Module and meet two hardware modules of determination module, but use non-hardware meets mode, and collected data are transmitted
Into the memory of host computer, in memory according to special data structure, the sieve for meeting data is completed by the processor of host computer
Choosing, judgement, reduce the difficulty for meeting algorithm, the flexibility ratio of lifting system.
It is shown in Figure 3, the system embodiment two that data transmission in PET system is realized in the embodiment of the present invention is shown,
By taking the system for realizing data transmission in PET system includes 12 acquisition modules as an example, then to the reality provided in the embodiment of the present invention
The system of data transmission is illustrated in existing PET system.
It in the present embodiment, altogether include 12 acquisition modules, the 1st grade of acquisition module is successively gone here and there until the 12nd grade of acquisition module
Each acquisition module, can be connected in series, universal serial bus includes send chain by row connection by universal serial bus in practical applications
Road and receives link, transmission link are used for the transmission of data, the transmission of receives link user instruction information, the dotted line table in figure
Show transmission link, solid line indicates receives link, and the 1st grade of acquisition module can also be connected by universal serial bus with host computer.
Host computer can send synchronization signal, each acquisition module to each acquisition module step by step by receives link first
It determines unified acquisition time, starts in the 12nd grade of acquisition module of the set time after acquisition time by collected number
According to the 11st grade of acquisition module is sent to, the 11st grade of acquisition module will be sent out after the data received and itself collected data investigation
The 10th grade of acquisition module is given, and so on, until the 1st grade of acquisition module is by the data received and itself collected data
It is sent to host computer after superposition, completes data transmission.Meanwhile host computer can also send command information to the 1st grade of acquisition module,
Command information is transmitted step by step by the 1st grade of acquisition module until the 12nd grade of acquisition module backward, and each acquisition module can be from instruction
Address in information according to acquisition module obtains the control instruction of oneself.It is acquired in data from the 12nd grade of acquisition module to the 1st grade
During module transfer, data required for meeting judgement can be not only transmitted, can also transmit and be acquired according to command information
Data, such as temperature, voltage, electric current etc..
In this way, the embodiment of the present invention connects each acquisition module using serial non-closed loop, end acquisition module adopts itself
The data collected are sent forward, after the data investigation that other each acquisition modules collect the data received with itself according to
It is secondary to front transfer, the data that whole acquisition modules collect finally are sent to host computer and carry out meeting judgement, data are passing
Data summarization is completed during defeated, is not necessarily to data summarization module and a large amount of data-interface, system connection structure is simple,
Using the system integration, and facilitate the extension of acquisition module quantity.
It is shown in Figure 4, the embodiment of the method for providing in the embodiment of the present invention and realizing data transmission in PET system is provided
One flow chart, the system that the present embodiment can be applied to realize data transmission in PET system, the system may include n and adopt
Collect module, n acquisition module includes n-th grade of acquisition module, i-stage acquisition module and the 1st grade of acquisition module, n acquisition mould
It is connected in series between block;N is the integer greater than 1, and the value of i is respectively each integer for being greater than 1 and being less than within the scope of n.At this
In some possible implementations of invention, it can be connected by serial bus serial between n acquisition module, universal serial bus packet
Include transmission link and receives link.This method may include:
Step 401: itself collected data is sent to (n-1)th grade of acquisition module by n-th grade of acquisition module.
Step 402: i-stage acquisition module collects the data received from i+1 grade acquisition module with itself
Data carry out data investigation, and the superimposed data of i-stage acquisition module are sent to (i-1)-th grade of acquisition module.
Step 403: the number that the 1st grade of acquisition module collects the data received from the 2nd grade of acquisition module with itself
According to data investigation is carried out, the 1st grade of superimposed data of acquisition module are sent to host computer, so that host computer is according to from the 1st grade
The received data of acquisition module carry out meeting judgement.
In some possible implementations of the invention, the collected data of acquisition module itself include timeslice, adopt
Collect address and the data information of module.The superimposed data of i-stage acquisition module are suitable according to the address of each acquisition module
What sequence obtained after carrying out data investigation from the data that the data that i+1 grade acquisition module receives are collected with itself;
The 1st grade of superimposed data of acquisition module are will be from the 2nd grade of acquisition mould according to the sequence of addresses of each acquisition module
It is obtained after the data progress data investigation that the data that block receives are collected with itself.
It is shown in Figure 5, the embodiment of the method for providing in the embodiment of the present invention and realizing data transmission in PET system is provided
Two flow chart provides realize that the method for data transmission in PET system can be with based on the above embodiment, in the embodiment of the present invention
Include:
Step 501: the 1st grade of acquisition module receives command information from host computer, and the 1st grade of acquisition mould is obtained from command information
Command information is sent to the 2nd grade of acquisition module by the corresponding control instruction of block.
In some possible implementations of the invention, the collected data of n-th grade of acquisition module itself, i-stage are adopted
The collection superimposed data of module and the 1st grade of superimposed data of acquisition module can be transmitted by transmission link.
Step 502: i-stage acquisition module receives command information from (i-1)-th grade of acquisition module, and the is obtained from command information
Command information is sent to i+1 grade acquisition module by the corresponding control instruction of i grades of acquisition modules.
Step 503: n-th grade of acquisition module receives command information from (n-1)th grade of acquisition module, and the is obtained from command information
The corresponding control instruction of n grades of acquisition modules.
In some possible implementations of the invention, command information can be transmitted by receives link.
In this way, the embodiment of the present invention connects each acquisition module using serial non-closed loop, end acquisition module adopts itself
The data collected are sent forward, after the data investigation that other each acquisition modules collect the data received with itself according to
It is secondary to front transfer, the data that whole acquisition modules collect finally are sent to host computer and carry out meeting judgement, data are passing
Data summarization is completed during defeated, is not necessarily to data summarization module and a large amount of data-interface, system connection structure is simple,
Using the system integration, and facilitate the extension of acquisition module quantity.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment emphasis is said
Bright is the difference from other embodiments, and the same or similar parts in each embodiment may refer to each other.For reality
For applying system or device disclosed in example, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, phase
Place is closed referring to method part illustration.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one
Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation
There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain
Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.