作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (06): 273-274. doi: 10.3969/j.issn.1000-3428.2007.06.096

• 开发研究与设计技术 • 上一篇    下一篇

EPA通信协议在嵌入式Linux上的设计与实现

王晓燕,王 平   

  1. (重庆邮电学院重庆市网络控制技术与智能仪器仪表重点实验室,重庆 400065)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-03-20 发布日期:2007-03-20

Design and Implementation of EPA Communication Protocol
on Embedded Linux

WANG Xiaoyan, WANG Ping   

  1. (Chongqing Key Lab of Network Control Technology & Intelligent Instrument,
    Chongqing University of Posts and Telecommunications, Chongqing 400065)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-03-20 Published:2007-03-20

摘要: 针对嵌入式系统的资源受限问题,提出了EPA通信协议在内存管理和资源同步等方面的一种设计方案。采用静态内存池的方式来避免内存碎片问题,使用阻塞/唤醒机制来同步多线程,使用互斥锁来互斥访问临界资源,从而提高EPA通信协议的实时性和稳定性;给出了EPA通信协议主要模块在嵌入式Linux下的实现过程及EPA协议的一致性测试结果。

关键词: EPA通信模型, 嵌入式应用软件, 内存池

Abstract: This paper puts forward design of memory management and resource synchronization, which avoid memory fragmentation by memory pool , synchronize multithread by block/wake up mechanism, access critical section by mutex. This design aim to improve the real-time and stability of EPA protocol. It accordingly illustrates the framework of several modules, supplies with the result of EPA protocol’s consistency test.

Key words: EPA communication model, Embedded software, Memory pool