一种汽车CAN总线网关的报文接收和发送方法A messages receiving and transmitting method of automotive CAN bus gateway
马建辉,胡代荣,郭坤
摘要(Abstract):
提出并验证了一种汽车CAN总线网关的报文接收和发送方法。以软件缓冲区配合CAN控制器的硬件缓冲区,设计软件缓冲区管理任务,通过与硬件缓冲区的联动能够实时地接收报文,保证报文不丢失。同时,在CAN控制器硬件缓冲区未满时及时将报文发送到总线上,不漏发报文,也不影响周期报文的周期准确性。
关键词(KeyWords): BCM;低功耗;RKE;CAN总线;网关;报文
基金项目(Foundation): 山东省重点研发计划:移动互联新能源汽车车内信息安全技术研究与应用(2017GGX10145);山东省重点研发计划(2016ZDJS03A04);山东省重点研发计划(2016GGC01023)~~
作者(Author): 马建辉,胡代荣,郭坤
DOI: 10.16652/j.issn.1004-373x.2018.11.002
参考文献(References):
- [1]王渝卉,郝矿荣,丁永生,等.车载CAN网关实时性分析与改进[J].机电工程,2012,29(8):873-876.WANG Yuhui,HAO Kuangrong,DING Yongsheng,et al.Realtime analysis and optimization of vehicle CAN-CAN gateway[J].Journal of mechanical&electrical engineering,2012,29(8):873-876.
- [2]刘侃,满庆丰.基于MC9S12HY64的电动车仪表盘设计[J].仪表技术与传感器,2014(12):22-24.LIU Kan,MAN Qingfeng.Dashboard design for electric cars based on MC9S12HY64[J].Instrument technique and sensor,2014(12):22-24.
- [3]冯源,豆海利,赵刚.基于S12X系列双核单片机的CAN网关设计[J].计算机测量与控制,2016,24(1):191-195.FENG Yuan,DOU Haili,ZHAO Gang.Design of CAN bus gateway based on S12 series dual-core MCU[J].Computer measurement&control,2016,24(1):191-195.
- [4]山东省科学院自动化研究所.一种汽车CAN总线网关的报文接收和发送方法:中国,201611178709.6[P].2016-12-19.Institute of Automation,Shandong Academy of Sciences.A method for receiving and transmitting messages of an automotive CAN bus gateway:China,201611178709.6[P].2016-12-19.
- [5]程安宇,何川,冯辉宗,等.基于SAE J1939协议的双缓冲区网关设计[J].计算机应用,2010,30(z1):15-17.CHENG Anyu,HE Chuan,FENG Huizong,et al.Design of gateway with double buffer based on SAE J1939[J].Journal of computer applications,2010,30(S1):15-17.
- [6]赵公旗,冯宝存,赵红玉,等.浅谈车载总线负载对网络传输影响及优化[J].汽车电器,2015(12):22-24.ZHAO Gongqi,FENG Baocun,ZHAO Hongyu,et al.Influence of vehicle busload on network transmission and its optimization[J].Auto electric parts,2015(12):22-24.
- [7]谢晓兵,董筠,周新发,等.CAN总线并发通信时下位机应用软件设计[J].空间控制技术与应用,2015,41(2):51-56.XIE Xiaobing,DONG Jun,ZHOU Xinfa,et al.Design for communication of CAN bus of lower application software in concurrent communication[J].Aerospace control and application,2015,41(2):51-56.
- [8]孙新安.CAN控制器的软件编程[J].有色金属加工,2017,46(5):61-66.SUN Xin’an.CAN controller software programming[J].Non-ferrous metals processing,2017,46(5):61-66.
- [9]刘宇,宋桂秋.时间参数为非正态分布的CAN总线数据传输可靠性分析[J].机械与电子,2014(11):16-20.LIU Yu,SONG Guiqiu.Analysis of non-normal distribution time parameters data transmission reliability in CAN bus[J].Achinery&electronics,2014(11):16-20.
- [10]张哲宇,王义.汽车CAN-Flex Ray总线网关研究与设计[J].贵州大学学报(自然科学版),2017,34(5):93-99.ZHANG Zheyu,WANG Yi.Research and design of automotive CAN-Flex Ray bus gateway[J].Journal of Guizhou University(natural science),2017,34(5):93-99.