Font Size: a A A

Design And Implementation Of Remote Control Software In The Undersea Tracer Gas In-situ Auto-detecting System

Posted on:2015-02-11Degree:MasterType:Thesis
Country:ChinaCandidate:W Z ZhongFull Text:PDF
GTID:2250330428468061Subject:Physical geography
Abstract/Summary:PDF Full Text Request
AS the third observation platform of Earth science, an undersea observation network is composed of a shore station, bottom feederes, bottom fibber and power cables, scientific instruments. In order to receive data from scientific instruments and control scientific instruments in an undersea observatory network, remote control software is required to be developed for each scientific instrument. This remote control software located shore or boat base side is developed for the " undersea tracer gas in-situ auto-detecting system" hosted by college of marine and earth science, Tongji University. It is the main function that operating underwater installations and receiving a variety of data from undersea tracer gas in-situ auto-detecting system.In this paper, major work has completed as follows:(1) By studying communication among these three parts of remote control software, underwater central control unit, underwater gas analysis device in the undersea tracer gas in-situ auto-detecting system, a communication protocol is designed among these three parts. An methodology that all data packets are firstly abstracted as an abstract class, and then inheriting classes override the sending functions and the handling functions in the abstract class is proposed in the paper, which greatly improves the scalability and stability of communication protocols.(2)It is implemented that data interaction with underwater central control unit. By using Winsock network communication technologies, the remote control software is designed as a client to connect with the underwater central control unit, in order to receive state monitoring data, power detection, GC sampling information and send instrument control commandes.(3) Due to the function of remote control software includes receiving network data, storaging data, displaying heart monitoring data, multithread design idea is used to make the main thread receive data more leisurely. The data is deposited into a receiving list when the main thread receives a data packet and then the background thread processes these data.(4) Seabed upload informationsuch as state monitoring data, power detection data, GC sampling data is stored in local files. these data is directly stored in an Excel format file for scientific research and data maintain. There are several ways to manipulate Excel files, and ADO operations are used in this study, in order to increase the speed of data storaging and retrievaling.(5) Memory pool design. When receiving data is deposited into the linked list, the program will need to be applied to20-70kb memory block every1-2seconds from the operating system. It would lead to excessive fragmentation of the memory block if the memory application frequency too rapidly and then the memory would decrease little by little.To avoid this problem, a memory pool is designed and used to manage memory allocation. Firstly, memory pool applies a larger piece of memory from the operating system, and then SMemoryChunks type of linked lists manages these applied memory. The program will simply allocate an available one from the applied memory when program memory is needed. This idea reduces memory fragmentation and improve the efficiency of memory allocation and release.
Keywords/Search Tags:undersea observation network, remote control software, communication protocols, multithread
PDF Full Text Request
Related items