您好,欢迎来到中国测试科技资讯平台!

首页> 《中国测试》期刊 >本期导读>嵌入式设备电源控制系统的CAN通信软硬件设计

嵌入式设备电源控制系统的CAN通信软硬件设计

2833    2017-11-01

免费

全文售价

作者:郭丽萍, 张艳荣, 林思苗

作者单位:西南交通大学机械工程学院, 四川 成都 610031


关键词:电源控制系统;CAN通信软硬件设计;网络负载分析;实时性分析;抗干扰能力


摘要:

为解决电源监控系统中存在的数字化程度低、实时性差、准确度和可靠性低等问题,在研究CAN协议的原理及应用技术的基础上,采用外挂Microchip MCP2515 CAN控制器的设计思想,完成基于AVR单片机的CAN通信软硬件设计,满足电源控制系统策略的需要。该文给出CAN总线的整体结构及控制器、收发器等组成部分硬件及软件的设计与实现,并对系统进行网络负载分析及实时性分析。实际运行表明:该系统可实现报文的发送、接收等功能,可靠性强、通信实时性好。另外,电气隔离电路的设计,进一步提高系统的抗干扰能力;同时,软件设计部分采用自顶向下的模块化设计方法,增强系统的可移植性。


Software and hardware design based on CAN communication for control system of embedded device power supply

GUO Liping, ZHANG Yanrong, LIN Simiao

School of Mechanical Engineering, Southwest Jiaotong University, Chengdu 610031, China

Abstract: To solve such problems as low digital level,poor real-time performance,low accuracy and reliability,software and hardware parts of CAN communication are designed based on AVR,meeting the requirement of control system to power supply.Microcontroller in conjunction with external CAN controller of Microchip MCP2515 is applied with the foundation of CAN protocol and practical technology.After hardware and software of parts of the system such as controller,transceiver are designed and established,as well as the general structure is shown,network load analysis and real-time performance analysis are carried out.The result of test shows that system can achieve such functions as transferring and receiving of messages with good reliability and real-time performance for communicating.In addition,the design of electrical isolation circuit further improve the anti-interference ability of the system;meanwhile,the software design part adopts the top-down modular design method strengthening the portability of the system.

Keywords: control system of power supply;software and hardware design of CAN communication;network load analysis;real-time performance analysis;anti-interference ability

2017, 43(10): 109-113  收稿日期: 2017-01-28;收到修改稿日期: 2017-02-22

基金项目: 

作者简介: 郭丽萍(1990-),女,四川简阳市人,硕士研究生,专业方向为网络测控。

参考文献

[1] 李霞,蔡启仲,陈文辉. 基于CAN的嵌入式PLC和监控系统通信设计[J]. 仪表技术与传感器,2011(10):41-43.
[2] 韩红远,朱翔宇. CAN总线在煤矿安全监控系统中的应用[J]. 太原科技,2007,160(5):63-64.
[3] 陶秋红,张伟龙. CAN总线技术及发展[J]. 商场现代化,2007(9):4-5.
[4] 孙书鹰,陈志佳,寇超. 新一代嵌入式微处理器STM32F103开发与应用[J]. 微计算机应用,2010,31(12):59-63.
[5] 陆前锋,刘波,陈明昭. 基于SJA1000的CAN总线智能控制系统设计[J]. 自动化技术与应用,2003,22(1):61-64.
[6] 韩鑫,鲍可进. CAN总线网络层协议栈开发测试[J]. 计算机工程,2011,37(15):232-234.
[7] 柯江民,孙淑霞,曹屹东. MCP2515及CAN通信驱动设计[J]. 网络技术,2008,17(12):43-45.
[8] 王继国,吉吟东,孙新亚. CAN总线控制器MCP2515的原理及应用[J]. 电测与仪表,2004,41(457):52-56.
[9] MICROCHIP INCORPORATION. MCP2515协议控制器手册[M]. 北京:机械工业出版社,2005,142-149.
[10] 张文杰,王坤. 浅谈CAN通信的硬件抗干扰设计[J]. 科技信息,2012(23):144.
[11] 田江学,屈卫东. 基于C8051F020的CAN通信软硬件设计[J]. 2004,23(3):52-55.
[12] 王泓. CAN总线的消息机制[J]. 中国测试技术,2006,32(1):130-131,144.
[13] TINDELL K W, HANSSON H, WELLINGS A J. Analyzing real-time communications:Controller area network(CAN)[R]. Real-time Systems Symposium, San Juan:IEEE,1994:259-263.