开发委托代理(Proxy Agent)来解决非SNMP 设备的标准化管理,是目前普遍采用的手段。文章针对开发委托代理时遇到的串口通信实时性和系统资源利用不足的问题,提出了一种基于事件驱动和双缓冲区的多任务串口通信的设计思想,结合相关控制算法实现了嵌入式委托代理的设计开发。该方案可用于网络设备上委托代理功能模块或嵌入式委托代理单元的设计实现,配合SNMP 管理站可以通过串口实现对非SNMP 设备的标准化管理。关键词:SNMP;委托代理;事件驱动;串口通信;多任务【Abstract】 Presently proxy agent is widely used in implementing the normative management for non-snmp equipments. For resolving the problems of real-time operation and system resources using, this paper introduces a design idea of multitask serial communication which based event driven and double buffers. With some correlative control arithmetic, the project achieves the development of embedded proxy agent and can be widely used in network equipments. Through serial interface, the proxy agent achieves the normative management for non-snmp equipments with SNMP manager.【Key words】 SNMP; Proxy agent; Event driven; Serial communication; Multitask