The invention discloses a method in the CAN protocol to achieve passive error frame and device of the invention, according to the change of flow data after error, determine the negative error correction for the length of frame delimiter, negative error frame, or the CAN protocol automaton to ensure synchronous reset, eliminating error node with all the node transceiver start time is solved, negative error node may be in fact off-line fault, improve CAN protocol communication reliability and bandwidth utilization, improve the security of the application of CAN protocol of the car, and the currently widely used network design tools have a reliable theoretical basis for the guarantee. The continuity of industrial production.
【技术实现步骤摘要】
【技术保护点】
一种在CAN协议中实现消极报错帧的方法,其特征在于,所述方法包括: 由CAN协议中检错机构取得检得错误的类型、在帧中离开帧起始位的位置信息; 由CAN协议中错误管理机构取得节点的状态信息; 由CAN协议中读入缓冲器取得从总 线上读得的比特流(bit stream)以及当前位离开帧内已知有关域的位置信息; 由CAN协议中状态自动机取得节点的当前收发状态信息; 根据出错以后在当前数据位前由总线上读得的比特流以及上述各信息对CAN协议中bit错、位填 充错、ACK错、CRC错和格式错的全局错与局部错的发生情景作逻辑推 ...
【技术特征摘要】
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。