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
摘要: 针对嵌入式系统的资源受限问题,提出了EPA通信协议在内存管理和资源同步等方面的一种设计方案。采用静态内存池的方式来避免内存碎片问题,使用阻塞/唤醒机制来同步多线程,使用互斥锁来互斥访问临界资源,从而提高EPA通信协议的实时性和稳定性;给出了EPA通信协议主要模块在嵌入式Linux下的实现过程及EPA协议的一致性测试结果。
关键词:
EPA通信模型,
嵌入式应用软件,
内存池
WANG Xiaoyan; WANG Ping. Design and Implementation of EPA Communication Protocol
on Embedded Linux
[J]. Computer Engineering, 2007, 33(06): 273-274.
王晓燕;王 平. EPA通信协议在嵌入式Linux上的设计与实现[J]. 计算机工程, 2007, 33(06): 273-274.