Advanced Materials Research Submitted: 2014-06-03 ISSN: 1662-8985, Vol. 1039, pp 197-202 Accepted: 2014-07-14 doi:10.4028/www.scientific.net/amr.1039.197 Online: 2014-10-31 2014 Trans Tech Publications, Switzerland Design of PC Remote Monitoring System for Standby Generators Chuanhong Zhou 1,a,Jinjie Xiao 1,b, Wei Ren 1,c 1 School of Mechatronic Engineering and Automation, Shanghai University;Shanghai Key Laboratory of Intelligent Manufacturing and Robotics, Shanghai 200072, China a chhzhoushu@gmail.com, b 634533171@qq.com, c perferom@163.com Keywords:Standby generators; PC remote server; SQL Server database Abstract. Currently, some problems exist in the process of using standby generators, such as low efficiency,high cost and late service of artificial overhaul and maintenance.in order to overcome problems, PC remote monitoring system is designed.this paper mainly introduces the structure composition,function,interface design and SQL Server database design of the system.in addition, the function of communication between the PC remote server and signal monitoring device was tested and the effect was desired. Introduction In recent years, the elevator accident took place frequently from place to place. Standby generators break down for no check for long time. Then it can t be launched when power cuts. Because of this, accidents are beyond count. All of these bring some trouble and even hidden danger of personal safety for users.currently, most standby generators of the elevator are using manual startup mode, so the need of launching standby generators immediately can t be met.property management personnel also hope to remote monitor the operation condition of the standby generators at ordinary times. PC Remote Monitoring System Functional Requirements of the System. The function of the PC monitoring system mainly has the following points:pc sends commands to monitor the operational parameters, fault and running state of standby generators via the signal monitoring device.these parameters include the output current,output voltage,operation frequency, module temperature, etc.then the responsive strings will be translated and stored as historical records. Composition Structure and Working Principle of the System. Composition structure of PC monitoring system is shown in Figure.1.It consists of generators, DSE5220 controller, the TCP client, the wireless router and the TCP server. PC communicate with multiple TCP client as a TCP server.and each TCP client monitors multiple monitoring objects at the same time. In other words, PC monitoring system uses a one-to-many way of monitoring. Fig. 1 Composition Structure of PC Monitoring System The working principle of the system is that using Socket to realize the communication between PC and signal monitoring device.as a bridge of communication between PC and the standby All rights reserved. No part of contents of this paper may be reproduced or transmitted in any form or by any means without the written permission of Trans Tech Publications, www.ttp.net. (ID: 130.203.136.75, Pennsylvania State University, University Park, USA-12/05/16,04:22:04)
198 Advanced Manufacturing and Automation generators, signal monitoring device will feedback the monitoring results to PC in the form of string. Software Design of PC Remote Monitoring System Design of Software Interface (1) Establish interface Establish basic project dialog.then check the option, Windows Sockets, because the application needs to support the socket communication, which is shown in Figure 2. Fig. 2 Establish Basic Project Dialog The next step is to add the necessary controls including tree control, text box, drop-down list box, list control and button controls. Then set up the relevant properties of each control. Among them, tree control is used to select the generator which need to be monitored. (2) Data initialization Configurating date for tree control and list control through adding program statements in the function, BOOL CPCDlg::OnInitDialog(). Tree control: HTREEITEM m_root; HTREEITEM m_child; m_root=m_tree.insertitem("signal monitoring device1", 0, 0); m_tree.setitemdata(m_root, 0); m_child=m_tree.insertitem("generators1", 0, 0, m_root); m_tree.setitemdata(m_child, 1); m_child=m_tree.insertitem("generators2", 0, 0, m_root); m_tree.setitemdata(m_child, 2); m_child=m_tree.insertitem("generators3", 0, 0, m_root); m_tree.setitemdata(m_child, 3); m_child=m_tree.insertitem("generators4", 0, 0, m_root); m_tree.setitemdata(m_child, 4); m_child=m_tree.insertitem("generators5", 0, 0, m_root); m_tree.setitemdata(m_child, 5); List control: m_listall.setextendedstyle(lvs_ex_gridlines LVS_EX_FULLROWSELECT); m_listall.insertcolumn(0, "Serial number", LVCFMT_CENTER); m_listall.insertcolumn(1, "IP of Signal monitoring device", LVCFMT_CENTER); m_listall.insertcolumn(2, "Time", LVCFMT_CENTER); m_listall.insertcolumn(3, "Command", LVCFMT_CENTER);
Advanced Materials Research Vol. 1039 199 m_listall.insertcolumn(4, "Response", LVCFMT_CENTER); m_listall.setcolumnwidth(0, 100); m_listall.setcolumnwidth(1, 100); m_listall.setcolumnwidth(2, 100); m_listall.setcolumnwidth(3, 164); m_listall.setcolumnwidth(4, 164); The initialized interface is shown in the Figure 3. Database Design Fig. 3 Interface of PC Remote Monitoring System In the PC remote monitoring system, remote monitoring server platform will receive data information from multiple signal monitoring device and store it in the database.presently commonly used DBMS (Database Management Systems) associated with website in Windows environment includes Access, MySQL, SQL Server, etc. Concept Design. Concept design is to abstract the objective object in the real world as a kind of information structure, which does not depend on a database management system.it s main task is to find the entity and the attribute of these entities.pc remote monitoring system mainly has three entities: generators, signal monitoring device (client), remote PC (server).using E-R diagram to describe the relationship among three entity and their attributes as shown in Figure 4.
200 Advanced Manufacturing and Automation Number Address Generator n Name Response 1 Signal monitoring device ----- Number IP n Name Number communication IP Remote Server 1 Name Fig. 4 E-R Diagram of the Relationship Among the Three Entities Logic Design. Logic design mainly transforms the results of the concept design into relational model to prepare for the next task - physical design. There are two 1:n contact in the E-R diagram.conversion principle:converting the 1: n contact into an independent relationship model,and the keyword of each entity connected with the contact and nature of the contact itself into nature of the relationship.the keyword of the relationship is the keyword of the n-terminal entity.in addition, generally speaking, the relationship converted from 1: n contact should be merged with relation mode corresponding to n-terminal, in order to reduce the number of relationship. According to this conversion principle,finally we confirmed five relation mode: Generators, Signal monitoring device, Remote PC, Communication, (Abnormal) Response. Physical Design. The task of physical design is to realize the result of the logical design in the specific database management system.in other words, it s to transform the relational model into the data table.the main characteristic of a relational database is using two-dimensional table to manage and store the data. (1) Main.db Master database design Main. db database store data tables corresponding to five relational model.it s configuration show in Table 1. Table 1 Master Database Main.db Table Name Instruction Configure Configuration parameters of the system (TBD) Motorstation Information of the generator Monitorstation Information of the signal monitoring device Remotestation Information of remote PC Modbus Frame format of Modbus Modbus_main Modbus_main frame table Warning Alarm information ExceptionResponsion Exceptional response
Advanced Materials Research Vol. 1039 201 (2) Data.db Historical database design Command frames sended and response frame received by Remote PC will be stored in the historical database in order to be inquired in the future.in addition, the exceptions that occur during the process of control shall be stored in the database for inspection maintenance. Table 2 Historical database Data.db Table Name Instruction History Historical data(3000 records) Abnormity Historical abnormal data(1000 records) Position Current record position of history and abnormity Historical database, Data.db contains a total of three tables.the table, history records historical data.the table, abnormity records history Historical abnormal data.the table, position records the current record position of the history and the abnormity.when designing the historical database, the number of records stored in history and abnormity table is no more than 3000 historical records and 1000 abnormal records.if the number of the records has been out of the limit, we will take over the former. Application Verification For the communication test between the client and server, we will test communication performance of program via programming a local connected client.the client s IP is 127.0.0.1 due to local connection.the client will connect with the remote PC server actively when the system is started.once the connection is successful, the tip will be displayed on the client.then we can do the test. Fig. 5 TCP Client Establishes Connection with the Server Although the query commands involved in this program are different, the design idea of these commands is consistent.so we do the test using cooling water temperature of the generators as an example.choose the query generators and the command, Start the PC command mode then click on the send button. The data frames 010304010001D4FA of the query command will show on the client.show in Figure 5. The client will sent the feedback information of the generators to remote PC server.
202 Advanced Manufacturing and Automation Summary Fig. 6 Server Receives the Feedback Information from TCP Client In this paper, we have carried on the analysis and design of the PC remote monitoring system of standby generators. This system provides a convenient monitoring interface for the management personnel.now the management personnel can remote monitor the running state of the standby generators in the monitoring center.thus the work of regular inspection for the standby generators could be avoided. The PC remote monitoring system of standby generators is an necessary tool in the field of the modern building safety management. The PC remote monitoring system introduced in this paper is stable and reliable.it s suitable for all kinds of standby generators.the adoption of common communication protocols and standard data storage model makes the system s upgrade and maintenance to be convenient.and the system has strong versatility and expansibility. References [1] Wu Jin-bing. The research of the diesel power plant remote monitoring and control system. Electrical engineering research. November, 2012. [2] Wang Miao. Solar energy remote monitoring system. Technology and application. December, 2011. [3] Liu Min-na, Pang Hong-xia, Huang Xiao-juan. Remote monitoring system of wind turbine design based on the GPRS. Bus and network. July, 2011. [4] Gong Jian-wei, Xiong Guang-ming. Visual C + + / Turbo C serial communication. Beijing. Electronic industry press. October, 2004. [5] Liang Wei. Visual C+ + network programming classic case explanation. Beijing. Tsinghua university press. June, 2010. [6] Wang Ying. Fuel cell standby power supply with the design and implementation of remote monitoring system. June, 2012. [7] Liang Shuang. SQL Server 2008 database application technology. Beijing. Tsinghua university press. September, 2013.
Advanced Manufacturing and Automation 10.4028/www.scientific.net/AMR.1039 Design of PC Remote Monitoring System for Standby Generators 10.4028/www.scientific.net/AMR.1039.197