CAN优先级倒置原因与对策  被引量:2

Priority Inversion in CAN: Causes and Solution

在线阅读下载全文

作  者:杨福宇 

机构地区:[1]重庆工业自动化仪表研究所,重庆401123

出  处:《单片机与嵌入式系统应用》2012年第4期1-4,共4页Microcontrollers & Embedded Systems

摘  要:CAN总线是代表性的基于消息优先级进行调度的事件触发协议。为了保障通信的正常运行,必须实现帧开始时的硬同步以及无帧发送时的毛刺滤除。在现有CAN总线协议中,这2个设计的组合在特定场合会引起高优先级消息失去与同时发生的低优先级消息的竞争机会,即优先级倒置。优先级倒置的后果是高优先级消息的送达时间延迟,送达时间的理论分析结果不再正确。在完全兼容CAN总线的条件下,提出了在总线空闲时以及在服务间隔第3位处理毛刺的方法。它对于优先级倒置有改进,但对于毛刺较长而与低优先级消息帧开始位(SOF)相连引起的倒置仍无法解决。CAN is a representative event-triggered protocol scheduled based on priority. To guarantee the correct operation it is necessary to realize hard synchronization during frame starting and glitch filtering when there is no frame starting. In current CAN protocol the two corresponding protocol designs in some cases will cause priority inversion: the higher priority message loses the chance to compete with the lower priority message which is ready at the same time with the higher one. The consequence of priority inversion is delay of higher priority message's delivery, and the scheduling analysis result is no longer correct. This paper suggests a remedy method to deal with the glitch in bus idle time and the glitch in the 3rd bit of inter mission. It is fully compatible with native CAN. It mitigates the pri- ority inversion problem, but the problem is still there when the width of glitch is prolonging to the SOF of lower priority message.

关 键 词:CAN 优先级倒置 毛刺 

分 类 号:TP273[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象