检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:马建辉 王知学[1,2,3] 侯冬冬 郭坤[1,2,3] Ma Jianhui;Wang Zhixue;Hou Dongdong;Guo Kun(Qilu Universily of Technology (Shandong Academy o{ Sciences) Jinan 250014, China;Automatic Institute of Shandong Academy, Jinan 250014, China;Shan Dong Key Laboratory of Automotive Electronics, Jinan 250014, China)
机构地区:[1]齐鲁工业大学(山东省科学院),济南250014 [2]山东省科学院自动化研究所,济南250014 [3]山东省汽车电子重点实验室,济南250014
出 处:《电子测量技术》2018年第3期60-63,共4页Electronic Measurement Technology
基 金:山东省重点研发计划项目(2017GGX10145、2016ZDJS03A04、2016GGC01023)资助
摘 要:CAN网络采用广播式通信方式,无效的CAN报文也会消耗CAN节点的计算资源,针对CAN节点需要接收、过滤和解析多个报文的需求,通过设置链接文件的代码段,使得微控制单元(Mcu)在实际运行时,CAN报文接收、滤波和解析函数重定位到RAM中运行,不仅能够加快程序运行速度,降低中断服务程序的运行时间,还可以降低对系统堆栈的要求。同时提出一种报文ID匹配算法,通过设定ID取值子区间,减少了ID比较的次数,提高了报文滤波速度。在CAN报文接收中断服务程序中执行ID快速匹配算法,进行滤波处理后,将有效的报文存人接收缓冲区,降低了接收缓冲区和CAN报文解析任务消息队列的RAM资源需求。同时在进行报文解析时,可以利用在中断服务程序中得到的ID取值子区间,降低ID比较次数,提高了报文解析速度。CAN network using broadcast communication, invalid CAN message will consume the CAN node computing resources, CAN nodes need to receive, filter and resolve multiple messages, by setting the code segment in the link file, the CAN message reception, filtering and parsing function will be relocated to RAM in the actual operation, which not only speeds up the program running, reduces the running time of the interrupt service routine, but also reduce the requirements for system stacks. At the same time, a message ID matching algorithm is proposed, which reduces the number of ID comparisons by setting the ID sub-interval, improves the packet filtering speed. Implement the ID fast matching algorithm in the CAN message reception interrupt service routine. After filtering, the valid message is stored in the receive buffer, which reduces the RAM resource requirement of the receiving buffer and the CAN message parse task message queue. At the same time, when the message is parsed, it is possible to reduce the number of ID comparisons and improve the resolution of the packets by using the ID sub-range obtained in the interrupt service routine.
分 类 号:TN919[电子电信—通信与信息系统]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.28