摘要
针对城市中大规模的路灯远程监控系统,设计开发了基于C/S与GPRS远程路灯监控系统的服务器端软件。为了解决同时和大量的客户端进行并发的网络通信问题,将微软的完成端口(IOCP)模型技术应用到了软件的网络通信模块中,并且采用了多线程机制。在利用ADO技术对Microsoft Access 2003数据库进行读写操作的数据处理模块中,采用了模块编程后进行分层的思想,把相同或相似的功能封装成模块,按照功能的调用划分层次,使模块间的调用变得有序,以尽可能降低代码的冗余量,节约空间。性能测试结果表明,所设计的服务器软件能够承载大量的客户端,具有较高的数据处理能力,在实际项目测试运行中也表现出良好的性能。
Aiming at the large-scale remote monitoring system of city-street-lighting, a set of server software was designed in road lighting control system based on C/S mode and GPRS networking. In order to solve a large number of clients communicating via the Internet with the server at the same time, Microsoft's completion port communication technology and multi-threading mechanism were applied in the network communication module of the server software. Modules programming and hierarchical idea were introduced in the data processing module which uses the active data objects (ADO) technology access to the Access database. The same or similar functions were packaged into a module and were divided into hierarchies according to function calls in order to make calls between modules become the order. The amount of code redundancy could be minimized and memory space would be saved. Performance tests results indicate that the server software can support numbers of clients and has a high data processing capability, and it has good performance in the actual project testing.
出处
《机电工程》
CAS
2012年第12期1498-1502,共5页
Journal of Mechanical & Electrical Engineering
关键词
城市路灯
远程监控系统
服务器端软件
动态数据对象
city-street-light
remote monitoring system
server software
active data objects (ADO)