介绍了一个基于客户/服务器模式下的嵌入式通讯平台的设计原理,分析了它的软硬件组成、Socket通信流程和串口类的封装,阐述了在Delphi环境下COM(component object model)的实现原理,以及如何利用套接字控件完成COM服务器和COM客户端之间的数据传递,此外,结合实例说明了串口通信的流程。
The design idea of an embedded communication platform is introduced based on client/server architecture. Compose of hard- ware and software is analyzed with work flow of the socket communication. Construction of serial port is also discussed at the same time. Code samples are given to illustrate how to implement COM (component object model) and how to implement the data transmission between COM server and COM client in Delphi. Finally the work flow of serial port communication is presented by an instance.