摘要
为适应工程中各类嵌入式模块接口性能测试的网络化趋势,设计了稳定可靠的通信机制,实现客户机/服务器模式的测试系统。基于解决网络通信问题的套接字网络编程,利用MFC平台下的CAsyncSocket类特性,结合Windows平台的消息响应机制,设计了测试网络专用通信协议,分析了控制台和测试台的设计。嵌入式模块性能测试系统的运行结果表明,测试数据信息无差错传输,并且具有较好的可移植性及异常处理能力,满足自动化测试系统网络化的需求。
As many types of embedded module interface performance testing had become more networking, the stable and reliable communication mechanism was designed to implement the test system with client/server mode. Based on the mainstream technology of network communication--socket network programming, took advantage of the CAsyncSocket under MFC platform, and combined with the message response mechanism of windows platform, the special purpose communication protocol was designed and the design of the console platform and the test platform was analyzed . The result of the running of the test system indicates that the error-free transmission of the test information is achieved with the characteristics of portability and exception handling , and satisfies well the requirement of networking test system.
出处
《电子设计工程》
2010年第9期67-69,共3页
Electronic Design Engineering
关键词
测试
网络通信
套接字
消息响应
test
network communications
socket
message response