摘要
为解决楼宇灯控制系统中有多客户端和多GPRS终端连接服务器,由于服务器和多客户端之间海量的信息交互与数据存取而导致服务器信息反馈缓慢和系统阻塞问题,提出了一种基于IOCP模型的服务器具体设计方案。采用了I/O完成端口模型、线程池技术,使服务器不仅能够将数据库读取的信息快速发送给客户端或者GPRS终端,更能够准确、高效地实现了不同客户端用户与其所管理的GPRS终端之间的信息传递,建立了每个客户端使用独立线程与服务器进行网络的数据通信关系,从而实现了对楼宇灯的管理和监控。目前该服务器已试用于实际的智能楼宇灯产品。研究结果表明,所设计的基于IOCP模型的服务器软件能够承载大量客户端,具有较高的数据处理能力,在实际项目测试中也表现出良好的性能。
Aiming at the present requirement for the efficient communication between clients and GPRS terminals, the building lights monito- ring system's server based on IOCP was designed. I/O completion port model and the thread pool technology were used for the server. Infor- mation which is read from the database not only can be sent to the client quickly by server or the transmission of information between users of different clients and GPRS terminals but also can be accurately and efficiently achieved by a GPRS terminal. The 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
2013年第11期1425-1429,共5页
Journal of Mechanical & Electrical Engineering
关键词
服务器
智能灯
I
O完成端口
GPRS
线程池
server
intelligent building light
I/O completion port(IOCP)
GPRS
thread pool