| Coupling of fiber-optic-taper array(FOTA)is a typical way to achieve large-area and high-resolution x-ray imaging,which is widely applied in many fields,such as large field of view x-ray phase contrast imaging,macromolecular crystal diffraction imaging,industrial non-destructive testing,life science research and so on.In the preliminary study of this project,an x-ray detector with four CMOS chips coupled to a 2×2 FOTA was implemented,which can complete x-ray image data acquisition and transmission normally.However,there are some problems in this system.Firstly,the ARM main control board cannot monitor the configuration process of FPGAs,and cannot meet the requirements for remotely updating configuration file in the x-ray environment.Secondly,there is a problem of packet loss during image data transmission,thus data retransmission efficiency is low.Thirdly,the ARM main control board ran bare metal program,it is difficult to maintain the system and to expand system's function.Furthermore,the system cannot meet the requirements of modern medical equipment network.This paper solved the above problems by optimizing software and hardware design on the embedded Linux operating system.The contents include:Firstly,building of the embedded Linux platform: The Linux operation system is ported to the project board to realize the self-management of software and hardware resources.Based on this operation system,the file system is transplanted to realize local storage of image data.Using standard TCP/IP protocol access data to solve the image data transmission problems and improve the stability and reliability of the system.Secondly,designing the relevant software: The underlying hardware driver,middle package layer program and upper layer application program were designed.The software layered structure and modular design based on the Linux system were implemented,which not only reduced the complexity of software design,but also facilitated the expansion of functions for further using.Thirdly,configuring multi-FPGAs remotely and parallel: To realize the function of configuring four FPGAs by the controlling of an ARM processor,hardware and software of the system were optimized.The remote and parallel configuration function and configuration file upgrade of multiple FPGAs under the Linux system were realized.Fourthly,networking control of the x-ray detector: A web server and a database server were set up on the Linux platform.Web pages and back-end server programs were designed.The goal of networked control of the x-ray detector was achieved.In addition,this word provided the foundation for x-ray detectors to connect to network workstations.The research of this paper optimized the data acquisition system of x-ray detection of the whole project,improved the stability and the extensibility of the system,realized the remote parallel configuration and upgrade of x-ray detector,and met the need for controlling of the detector by network. |