| Scientific instruments and equipment is the basis of the conditions of scientific research and technological innovation, and is an important measure of a national the level of development of science and technology, and is very high proportion in the whole science and technology resources. In recent years, because the Unix & Linux operating systems is security, and the viruses which are to the mainstream PC operating system, Windows the major target of, are ineffective for both in physics and logic of Unix & Linux operating systems, the application of Unix & Linux operating system is growing more extensive control of such operating system software is based on the scientific instruments are also gradually increased. In such cases, in order to enable science and technology workers understand the work of such a state of scientific instruments, it is need for developping the software which is used to monitor the state of scientific instruments based on the Unix & Linux operating system.In this paper, researched how to effectively monitoring the work of this kind of scientific instruments, and record scientific instruments work effectively on issues such as machine when an in-depth analysis,that the scientific instruments connected through the RS-232 interface and Ethernet interface with a computer. Use software to achieve the state of scientific instruments to monitor and work records. This paper introduces the overall design of the condition monitoring software which is based on Solaris operating system. Then, it is respectively given monitoring program of scientific instruments which is connected to computer through the RS-232 interface and Ethernet interface. And it is real-time recording equipment to start and end of time, and the information of current user, and then, the data will be uploaded to the server by the software. Paper made in the following research:1. For the Solaris operating system, given the characteristics of scientific instruments condition monitoring software and the overall design.The first part introduced the development and characteristics of Unix and Linux operating systems. SUN's Solaris operating systems (a kind of Unix operating systems) could support well on the x86 architecture, and much control software of scientific instruments is based on this operating system, so this paper designs equipment condition monitoring software based on Solaris operating system and gives the overall design of the software. When the computer startup, the monitoring software will monitor whether the equipment control software is turned on. When the instrument control software is open, the monitoring software will record the current user and their user types. The monitoring software monitor interface data flow to determine to record the machines whether or not to start work. If the machines has began to work, then the monitoring software records the work time, and the time of machine closed. Finally the monitoring software conveys the data to the server.2. Design effective monitoring method for the machines adoption of RS-232 interface with a computer.This part introduced the RS-232 serial interface bus, then, raise based on the Unix & Linux operating systems the equipment condition monitoring software overall design which connected through the RS-232 interface with a computer. In the Unix & Linux operating systems, the hardware is thought as a device file, and the application can operate the hardware devices as an ordinary file. Document provides the equipment to the majority of physical device interface, and according to the characteristics of serial port this paper brings forward the monitoring methods: through the ptrace system call to monitor communication of the processes, we can get the time of the start and the end of the incident by the serial port. Finally, this part introduced the method, and the test of the method.3. Design effective monitoring method for the machines adoption of Ethernet interface with a computer.First, TCP / IP protocol is introduced in this part. According to the Internet Engineering Task Force (IETF), we describe a measurement of network traffic common framework. Based on the framework, this paper proposed a simplified model for monitoring network traffic. Then this paper introduces two types of network traffic monitoring approach: active monitoring and passive monitoring. Then this paper introduces two ways to intercept the network packet: the one is SockPacket; the other is BPF packet interception mechanism. This paper use BPF packet interception mechanism. Finally, this paper introduces that method of BPF packet interception mechanism, and parses the program.4. Studying the method of software transplantation from the Solaris operating system to the Linux operating system.It is necessary for the migration of software and designing the transplantable software that researching the transplant. Portability is one of the elements of software quality. Good portability can extend the life cycle of software and applied environment of software and reduce the development and maintenance costs of software, so portability has become studying common concern direction by the theoretical and engineering. This part introduces the concept of portability. Portability refers how hard the program is transplant from one computer to another computer. Then this part describes the trend of transplant from the Unix operating system to the Linux operating system migration. And then it is given that transplantation attention from the Solaris operating system to the Linux operating system. Finally it has been given that the concrete steps of transplantation.The work need for carried out by further:(1) CPU occupancy rate. As the process is designed which is based on the idea of the daemon threads to run in the background, and it is a cyclical operation, it will take up some CPU all the time. If the software which control scientific instruments takes a little of CPU occupancy rate, the software will not be affected, but if that software takes a large of CPU occupancy rate, the monitoring software will affect to the control software when it is running. To this end, it is need to study a better more effective method to resolve the problem.(2) The computer through the Ethernet interface connects to the scientific instruments through the card and computer data transmission. If the computer has two network cards, then the data transmission can be responsible for the computers and scientific instruments, and it is can upload the data to the server by the other network card through Internet access. In other words, if a computer and the scientific instruments exchange data via Ethernet interface, and then only the computer have two network cards when they can achieve real-time data transmission. However, if the computer has only one network card, these functions can not be achieved. For in such a situation, it can transmit data through the converter card with a network card from serial port to the server by designing a converter of the serial port and Ethernet port.(3) The monitoring software is not installed on the large-scale scientific instruments to carry out installation and commissioning.As a result of my ability and energy are limited, only the monitoring of software research and design, development of the detection software is not very mature, not installed for this purpose to the specific scientific instruments on the large-scale testing. Hope that students can improve the monitoring software, to achieve the monitoring of large scientific instruments. |