CAN总线分布式采集模块的优化设计

皇迎港, 杨洋, 任勇峰, 张凯华

集成电路与嵌入式系统 ›› 2023, Vol. 23 ›› Issue (2) : 53-56.

PDF(1517 KB)
PDF(1517 KB)
集成电路与嵌入式系统 ›› 2023, Vol. 23 ›› Issue (2) : 53-56.
新器件新技术

CAN总线分布式采集模块的优化设计

  • 皇迎港1, 杨洋2, 任勇峰1, 张凯华1
作者信息 +

Design Optimization of Distributed Acquisition Module Based on CAN Bus

  • Huang Yinggang1, Yang Yang2, Ren Yongfeng1, Zhang Kaihua 1
Author information +
文章历史 +

摘要

为了满足智能汽车对多路车载传感器的数据采集和数据可靠传输的需求,在CAN通信的标准帧中添加应用层协议,以“点名-应答”机制实现了一主多从的数据传输,并利用C8051F060内部的定时器实时监测总线上主节点下发点名指令和从节点应答的时间间隔,解决了传输链路在受到外部干扰后导致的数据包长短帧、节点延迟响应和故障节点异常离线等传输错误。采集模块采用单片机控制16选1的模拟开关ADG706和模/数转换器AD7667,实现对16路传感器数据的采集。最后经过多次测试验证和监测总线上的数据,CAN总线上传输速率达500 kb/s,可挂载32个从节点,并且每个节点可单独采集16路传感器数据,满足智能汽车对缓变信号的采集需求。

Abstract

In order to meet the needs of smart cars for data collection and reliable data transmission of multi-channel on-board sensors,the application layer protocol is added to the standard frame of CAN communication,and the data transmission of one master and multiple slaves is realized by the mechanism of "call-and-reply",and use the timer inside the C8051F060 to monitor the time interval between the master node issuing the roll call command and the slave node replying on the bus from time to time,which solves the problem of the length of the data packet,the delay of the node response and the abnormal offline of the faulty node caused by the external interference of the transmission link.The acquisition module adopts the single-chip microcomputer to control the 16-to-1 analog switch ADG706 and the analog-to-digital converter AD7667 to realize the acquisition of 16-channel sensor data.Finally,after several tests to verify and monitor the data on the bus,the transmission rate on the CAN bus reaches 500 kb/s,32 slave nodes can be mounted,and each node can collect 16 channels of sensor data independently,which meets the requirements of smart cars for slowly changing signals.

关键词

CAN总线 / ADC / C8051F060 / RS422接口

Key words

CAN bus / ADC / C8051F060 / RS422 interface

引用本文

导出引用
皇迎港, 杨洋, 任勇峰, 张凯华. CAN总线分布式采集模块的优化设计[J]. 集成电路与嵌入式系统. 2023, 23(2): 53-56
Huang Yinggang, Yang Yang, Ren Yongfeng, Zhang Kaihua. Design Optimization of Distributed Acquisition Module Based on CAN Bus[J]. Integrated Circuits and Embedded Systems. 2023, 23(2): 53-56
中图分类号: TP29   

参考文献

[1] 杨婷婷.基于CAN总线网络的车辆电子故障在线监测系统设计[J].齐齐哈尔大学学报(自然科学版),2021,37(3):5-11.
[2] 柳灏.面向智能驾驶的CAN广播式时间同步机制[J].信息与电脑(理论版),2021,33(22):189-191.
[3] 杨志民.基于CAN总线的电子设备运行数据采集软件设计[J].电子技术与软件工程,2021(22):36-37.
[4] 霍明瑞,文丰,焦新泉,等.基于 FPGA 的温度采编转发系统设计[J].电子器件,2019(1):1-5.
[5] 钱小东,宣浩,曾巧,等.FPGA软核的CAN总线接口设计及星载应用[J].单片机与嵌入式系统应用,2021,21(9):18-22.
[6] 布朋生.基于CAN总线错误帧机制的矿用设备网络安全问题研究[J].煤矿机械,2022,43(4):41-44.
[7] 代普,李永锋,韩建刚,等.基于CAN总线和大容量数据存储的舰炮远程监控系统设计[J].兵工学报:2022,12(5):1-8.
[8] 王鹏.一种抗辐射加固CAN总线收发器的设计与实现[D].成都:电子科技大学,2019.
[9] 陈凡.汽车高速CAN总线的故障机理分析[J].汽车维修,2022(1):22-24.
[10] 刘畅,张清,彭晴晴,等.多路传感器信号采集无线传输模块设计[J].现代电子技术,2019,42(18):99-102.
[11] 李文祥,周小军,亢超,等.基于增强型海明码的CAN总线实时性研究[J].仪表技术与传感器,2021(7):44-47,53.
[12] 叶青艳.CAN总线的车用仪表系统设计与实现[J].微型电脑应用,2021,37(12):202-205.
[13] 林建宇.基于CAN总线的智能小车通信系统设计[J].上海电力大学学报,2021,37(6):587-590.

PDF(1517 KB)

Accesses

Citation

Detail

段落导航
相关文章

/