Utility model content
The purpose of this utility model is to provide a kind of PET communication system based on IP and CAN, and PET communication system adopts based on the communication construction of IP with CAN, has fully utilized IP and has communicated and the advantage of CAN protocol, reduced the hardware cost of system; Save software development time, decrease the complexity of software, improve the response time of system, stability is high.
For achieving the above object, solution of the present utility model is:
A kind of PET communication system based on IP and CAN, comprise and issue for control message at least one group of equipment access module communicated to connect with the control of feedback information process, display and display module and described control and display module IP based network, described equipment access module of often organizing comprises a transfer unit and a client unit:
Described transfer unit and described control and display module communicate to connect based on IP, network interface communication module is set up in described transfer unit inside, described transfer unit communicates to connect based on CAN via described network interface communication module and described client unit, for described client unit and the forwarding of message between described control and display module, buffering and conversion;
Described client unit comprises at least one group of detector Control Component, described detector Control Component of often organizing comprises a detector panel, the first peripheral circuit that described detector panel comprises first processor and coordinates described first processor to arrange, establishes a network interface communication module in described first processor thus often group detector Control Component is all connected with described transfer unit communication based on CAN.
Between described transfer unit, IP based network communication connection is for the client unit of described vicinity and the forwarding of message between described control and display module, buffering and conversion.
Described client unit also comprises an Electric Machine Control assembly: described Electric Machine Control assembly comprises motor control panel, described motor control panel comprise the second processor and with the second peripheral circuit coordinating described second processor to arrange, establish network interface communication module to be connected with described transfer unit communication based on CAN in described second processor, realize the control of motor and berth motion.
Described client unit also comprises clock control assembly, described clock control assembly comprises clock making sheet for the moment, described clock control plate comprise the 3rd processor and with the 3rd peripheral circuit coordinating described 3rd processor to arrange, establish network interface communication module to be connected with described transfer unit communication based on CAN in described 3rd processor, control precision and the output of clock at different levels.
Preferably, the described network interface communication module CAN message software processing module that comprises CAN transceiver and match with described CAN transceiver.
Further, the first peripheral circuit, the second peripheral circuit and the 3rd peripheral circuit comprise clock circuit and power circuit respectively, and described clock circuit and power circuit are connected with first processor, the second processor and the 3rd processor communication respectively.
Described transfer unit is ARM panel.
Or the systems exchange plate that described transfer unit comprises ARM panel and communicates to connect based on IP with described ARM panel, described client unit communicates to connect based on CAN with described systems exchange plate respectively.
Described control and display module are minicomputer, server, work station or common PC.
Further, control to comprise in ICP/IP protocol stack and Windows, Linux, Unix, Mac OSX operating system with display module any one.
Owing to adopting such scheme, the beneficial effects of the utility model are:
One, illustrated a kind of PET communication system based on IP and CAN, at original client unit and detector Control Component, Electric Machine Control assembly, the network interface communication module communicated for CAN is set up in clock control assembly and transfer unit, communicate via CAN between client unit with transfer unit, transfer unit communicates via IP with between control with display module: 1, software and hardware standardization level for IP communication is high, highly versatile, be easy to development & rehosting, with low cost, simultaneously, the band of IP communication is roomy, speed is high, transmit a large amount of data stabilizations efficient, 2, the real-time of (1) CAN is high, reliable and stable, strong anti-interference performance, and Single Point of Faliure can not affect other node, is very beneficial for the reliability of elevator system, (2), the holding wire quantity of CAN is few, and link is simple, is beneficial to the layout cabling of whole system like this, can reduces hardware cost greatly, the quantity increase and decrease of each node is convenient, and the electrical characteristic only by CAN specification retrains, (3), the form of CAN message fixes, and is beneficial to the message that transmission is brief and urgent, also simplify the process to CAN message on software simultaneously.
Two, the extensibility applying PET or the PET-CT equipment of PET communication system shown in this utility model is strong, server or transfer unit are held as Server, detector Control Component, Electric Machine Control assembly, clock control assembly etc. are as Client end (client), as long as the disposal ability of Server end is enough strong, the quantity of Client end can be unrestricted, greatly improves the extensibility of system; Hold the number of devices linked conveniently to increase and to reduce with the Server of transfer unit or server, the quantity of such detector Control Component and detector panel can change arbitrarily simultaneously, and without the need to making amendment to other parts, highly versatile.
Three, the redundancy performance of communication system is strong, communicated to connect by IP network between each transfer unit, when a wherein transfer unit to communicate with between control with display module go wrong time, the transfer unit also by other communicates with client unit, and the redundancy performance of system is strong.
Detailed description of the invention
Below in conjunction with accompanying drawing illustrated embodiment, this utility model is further described.
As shown in Figure 1, the utility model discloses a kind of PET communication system based on IP and CAN, directly can be applied in PET equipment or use other medical imaging equipments of PET as on PET-CT, comprise and issuing and feedback information process for control message, the control of display and display module 100, with at least one group of equipment access module 200 controlling to communicate to connect with display module 100 IP based network, as shown in Figure 2, often organize equipment access module 200 to comprise a transfer unit 210 and communicate to connect client unit with transfer unit 210 IP based network, client unit can arrange arbitrarily as required and expand, for completing the most basic function of PET system, client unit need comprise at least one group of detector Control Component 221, in embodiment illustrated in fig. 2, client unit also comprises Electric Machine Control assembly 222 and a clock control assembly 223.
Illustrated PET communication system, network interface communication module is set up in the client such as detector Control Component 221, Electric Machine Control assembly 222, clock control assembly 223 originally cannot carrying out CAN communication and transfer unit, make to communicate via CAN between each client with transfer unit, the unit of transfer simultaneously communicates via IP with between display module with control again, whole communication structure is well arranged, external interface is stablized distinct, provide a kind of communication structure of standardization and normalization, development cost is low.
Fully utilize IP based on IP and the system communication mode of CAN to communicate and the advantage of CAN protocol, reduce the hardware cost of system; Save software development time, decrease the complexity of software, improve the response time of system, stability is high.
Control to communicate via IP with between display module with transfer unit, the software and hardware standardization level of IP communication is high, and highly versatile, is easy to development & rehosting, with low cost, and the band of IP communication is roomy, and speed is high, transmits a large amount of data stabilizations efficient; Communicate via CAN between transfer unit with the clients such as Electric Machine Control assembly 222, clock control assembly 223, the real-time of CAN is high, reliable and stable, strong anti-interference performance, therefore the Single Point of Faliure in client unit between a certain Control Component and transfer unit 210 can not affect other node, is very beneficial for the reliability of elevator system, the holding wire quantity of CAN is few simultaneously, link is simple, is beneficial to the layout cabling of whole system like this, can reduces hardware cost greatly; And the increase and decrease of the quantity of each node is convenient, the electrical characteristic only by CAN specification retrains; In addition, the form of CAN message is fixed, and is beneficial to the message that transmission is brief and urgent, also simplify the process to CAN message on software simultaneously.
PET communication system realizes controlling and the information transfer of display module 100 with client unit via transfer unit, and the extensibility of PET system is strong.When adopting above-mentioned PET communication system, in other equipment of PET equipment or application PET, not only a server can mount many group equipment access modules 200, and often organize in equipment access module 200, also can according to the Control Component arranging the multiple such as detector Control Component 221 of demand mounting, Electric Machine Control assembly 222, clock control assembly 223 on transfer unit 210.Because transfer unit 210 and control and display module 100 are communicated to connect by IP network, client unit and transfer unit communicate to connect via CAN, server or transfer unit 210 are held as Server, detector Control Component 221, Electric Machine Control assembly 222, clock control assembly 223 grade is as client, as long as the disposal ability of Server end is enough strong, the quantity of client can be unrestricted, greatly improve the extensibility of system, the number of devices linked is held conveniently to increase and to reduce with the Server of system control panel or server, the quantity of such detector Control Component and detector panel can change arbitrarily, and without the need to making amendment to other parts.
Control to be mainly used in man-machine interaction, issuing of system control command and presenting of all kinds of result with display module 100, in the present embodiment, controlling with display module 100 be one in minicomputer, server, work station or common PC, control and run in display module in ICP/IP protocol stack and Windows, Linux, Unix, Mac OS X operating system any one.Below to control with display module 100 as server, run in server in Windows and ICP/IP protocol stack or server and run (SuSE) Linux OS and ICP/IP protocol stack is described.Server is according to the use scenes of client, communicated with each client (i.e. detector Control Component 221, Electric Machine Control assembly 222, clock control assembly 223) respectively by IP network, autonomous determine each detector Control Component 221, Electric Machine Control assembly 222 mode of operation, parameter and firmware and transfer unit 210 running parameter.
Transfer unit 210 with control to communicate to connect with display module 100 IP based network, for each client and the forwarding of message between control and display module 100, buffering and conversion.The systems exchange plate that transfer unit 210 can directly be ARM panel or comprise ARM panel and communicate to connect with ARM panel IP based network.For realizing the CAN communication between client unit, ARM panel or systems exchange plate need separately to establish a network interface communication module, general, network interface communication module comprises CAN transceiver and CAN message software processing module, to coordinate ARM panel or the original CAN controller function of systems exchange plate, carry out the transmitting-receiving of message.When transfer unit 210 is ARM panel, multiple client is directly articulated on ARM panel, if control with the disposal ability of display module 100 enough powerful, the quantity of client can wireless extensions, arranges arbitrarily.When the systems exchange plate that transfer unit 210 comprises ARM panel and communicates to connect with ARM panel IP based network, multiple client and at least one group of detector Control Component 221, Electric Machine Control assembly 222 and clock control assembly 223 communicate to connect based on CAN with systems exchange plate respectively.
If on server during access many groups equipment access module 200, between the transfer unit 210 in each equipment access module 200 also can IP based network communication connection for detector Control Component 221, clock control assembly 223, Electric Machine Control assembly 222 and control the forwarding of message between display module 100, buffering and conversion.Such setting, when a wherein transfer unit 210 and when controlling between display module 100 communication broke down, controlling to communicate news by final detector panel, motor control panel or clock control plate with specifying via other transfer unit 210 with display module 100, improving the redundancy performance of whole system.
Detector Control Component 221 comprises detector panel, the first peripheral circuit that detector panel specifically comprises again first processor and communicates to connect with first processor, first processor is CPU, wherein except pre-stored detector control sequence, network interface communication module is established also, for realizing CAN communication, network interface communication module needs to comprise CAN transceiver and CAN message software processing module, to coordinate original CAN controller function in first processor, carry out the transmitting-receiving of message, particular hardware structure as shown in Figure 3, thus can base CAN communicate with display module 100 with control via transfer unit 210, mutual and the firmware upgrade with the operating parameter information realizing detector Control Component 221, first peripheral circuit is used for auxiliary support first processor, first peripheral circuit generally includes clock circuit and power circuit, clock circuit and power circuit communicate to connect with first processor respectively.
Electric Machine Control assembly 222 comprises motor control panel, the second peripheral circuit that motor control panel further comprises the second processor (CPU) and is connected with the second processor communication, in second processor except pre-stored Electric Machine Control program, also network interface communication module is established in, network interface communication module needs to comprise CAN transceiver and CAN message software processing module, to coordinate original CAN controller function in the second processor, carry out the transmitting-receiving of message, thus Electric Machine Control assembly 222 can based on CAN and transfer unit communication, final realization and the information interaction between display and control module, thus the control of motor and berth motion can be realized according to the real needs of operation card, described in the same, second peripheral circuit is used for auxiliary support second processor, comprise clock circuit and power circuit, clock circuit and power circuit are connected with the second processor communication respectively.
Clock control assembly 223 comprises clock control plate, the 3rd peripheral circuit that clock control plate comprises the 3rd processor and is connected with the 3rd processor communication, network interface communication module is established in 3rd processor, network interface communication module needs to comprise CAN transceiver and CAN message software processing module, to coordinate original CAN controller function in the 3rd processor, carry out the transmitting-receiving of message, particular hardware structure as shown in Figure 3, thus clock control assembly 223 can communicate with display module 100 with control with CAN network based on IP, to control precision and the output of clock at different levels, described in the same, 3rd peripheral circuit is used for auxiliary support the 3rd processor, comprise clock circuit and power circuit, clock circuit and power circuit are connected with the 3rd processor communication respectively.
In embodiment illustrated in fig. 3, the communication process of whole PET system is as follows: after PET system start-up completes, and detector panel, motor control panel, clock control plate and transfer unit 210 set up relevant TCP or UDP communication connection by ICP/IP protocol.Server selects according to the duty of system or user the communication message sending TCP or UDP to corresponding module, transfer unit 210 resolve after receiving the message from TCP or UDP of server this message according to the destination of this message by this message repeating to motor control panel or clock control plate or detector panel, communication objective termination is resolved this message after receiving this message and is made corresponding response.And response results is returned to system control panel by TCP or UDP connection.System control panel resolves this message after receiving the response message of detector panel, motor control panel or clock control plate, and the result of response is reported server end by TCP or UDP, carry out after received server-side to response message resolving and present final result.
Be further detailed with the work process of magnitude of voltage process to the PET communication system shown in this utility model of server lookup wherein one group of detector Control Component 221 below.
As shown in Figure 4, when needing the magnitude of voltage of inquiry one group of detector Control Component 221 passage 0, as shown in Figure 3, two-way interactive between message information server, transfer unit and detector Control Component 221.
The process of the detector Control Component 221 of specifying is arrived through transfer unit as shown in Figure 4: the handling process of (one) server message: the magnitude of voltage 1, needing the passage 0 inquiring about T11 detector according to user after message information is sent by server, the interactive interface of server end generates the message of 1. form after receiving this request, and sends downwards; 2,2. 1. IP layer increase IP first-born one-tenth message afterwards receiving message, and send downwards; 3,3. MAC layer generates message after receiving message 2. to increase the heading of MAC layer afterwards, and sends, and 4,3. message outwards send through PHY layer.(2) the transfer handling process of transfer unit message: 1, PHY layer after receiving the data on give MAC layer; 2, MAC carries out address check, and to message checking, if verification by rear generation message 4., and gives IP layer; 3, IP layer carries out School Affairs process after receiving message, generates message 5., and gives TCP/UDP layer; 4, TCP/UDP verifies after receiving message, generates message 6.; 5, application layer software analytic message TCP/UDP head data division below 6., discovery is the voltage hanging over the detector T11 under this system control panel under inquiry, then change this data division; 6, to the data genaration can message after conversion as shown in 7.; 7,7. CAN message outwards sends through CAN controller and CAN transceiver.(3) the client detector Control Component 221 Message processing flow process of namely specifying: 1, CAN transceiver and CAN controller receive CAN message, generate message 8. after verification; 2, CAN processing protocol analytic message TCP/UDP head data division below 8., discovery is the voltage of this detector of inquiry T11, inquires about the voltage of reality.
The process of the server of specifying is arrived as shown in Figure 5 through transfer unit: the detector Control Component 221 Message processing flow process that namely (one) client specifies: 1, the magnitude of voltage of the passage 0 of application queries T11 detector after message information is sent by detector Control Component 221, and generate the message of (1) form, and send downwards; 2, (1) message outwards sends through CAN controller and CAN transceiver; (2) (2) the transfer handling process of transfer unit message: 1, CAN transceiver receives CAN message, generate message after the School Affairs of CAN controller filters; 2, CAN protocol receive message (2) resolve afterwards this message find be under hang over the voltage inquiry response message of the detector T11 under this system control panel, then this data division is changed; 3, new TCP/UDP 1 is added to the data after conversion, generate message 3., and be sent to IP layer; 4, (3) IP layer increases IP 3 afterwards and generates messages (4) receiving message, and sends downwards; 5, (5) MAC layer generates messages after receiving message (4) to increase the heading MAC 3 of MAC layer afterwards, and sends; 6, (5) message outwards sends through PHY layer.(3) handling process of server place message: 1, PHY layer after receiving the data on give MAC layer; 2, MAC carries out address check, and to message checking, if verification by rear generation message (6), and gives IP layer; 3, IP layer carries out School Affairs process after receiving message, generates message (7), and gives TCP/UDP layer; 4, TCP/UDP verifies after receiving message, generates message (8); 5, application layer software analytic message TCP/UDP head data division below (8), discovery is the response message of the voltage inquiry of detector T11, and result transforms, and presents user.
Above-mentioned is can understand for ease of those skilled in the art and use this utility model to the description of embodiment.Person skilled in the art obviously easily can make various amendment to these embodiments, and General Principle described herein is applied in other embodiments and need not through performing creative labour.Therefore, this utility model is not limited to above-described embodiment, and those skilled in the art, according to announcement of the present utility model, do not depart from improvement that this utility model category makes and amendment all should within protection domain of the present utility model.