基于通用即插即用的分布式CAN网络研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
即插即用(PnP)原本是一项用于自动处理PC机硬件设备安装的工业标准。随着不断发展,即插即用扩展到整个网络,使得网络上的设备能够被发现和控制,实现了网络节点的即插即用。本文的主旨就是把针对TCP/IP网络的通用即插即用(UPnP)标准应用到CAN网络,实现CAN网络节点的自动识别。
     本文在介绍了课题来源、目的及意义之后,首先综述网络控制系统、分布式CAN网络、通用即插即用以及智能传感器IEEE1451标准等方面相关文献,然后分析了基于CAN总线的通信协议,包括定义数据链路层和物理层的CANBus2.0B协议以及定义应用层的CANopen协议。
     在此基础上,本文提出了基于UPnP的CAN节点自动识别解决方案。首先介绍方案的基本思想——划分为两个通信阶段,基于物理地址的CANBus2.0B通讯阶段和基于节点位置信息的CANopen通讯阶段。然后进一步阐述了从节点位置自动识别的算法,并详细说明如何配置主从节点需要保存的信息。最后介绍了基于单片机的CAN节点即插即用原理样机的开发,硬件开发包括与上位机通讯的串口模块、主从节点通讯的CAN接口模块;软件开发包括主从节点程序流程。针对该CAN节点原理样机,本文通过实验论证了自动识别方案的可行性,同时分析对比了方案的实时性。
     本文最后针对所作的工作加以总结,进一步展望了下一步工作的几个核心问题。
Plug and Play (PnP) was originally an industry standard which is constituted for automatic processing of PC hardware installation. With the continuous development, plug-and-play extended to the entire nerwork, so the equipment of network can be found and controlled which realized plug-and-play of network nodes. The topic of this paper is to apply Universal Plug and Play (UPnP) which is addressed TCP/IP network to the CAN network, realize automatic identification of the CAN network nodes.
     After introduced the subject source, purpose and significance, firstly, this paper reviewed the literature. Secondly, it analysed the communication protocol based on the CAN bus, including CANBus2.0B and CANopen.
     On this basis, this paper put forward the solution of automatic identification of the CAN nodes based on UPnP. Firstly, it introduced the basic idea which divides communication process into two stages including the stage of CANBus2.0B communication based on physical address and the stage of CANopen communication based on node location information. Secondly, it furtherly expounded the arithmetic about automatic identification of slave node location, and detailed description of how to configure the node from the need to preserve the information. Finally, it described the development of the PnP CAN node prototype based on MCU, hardware development including the serial port communication module and the CAN communication module, software development including the design of the main flow from the node procedure. Against the CAN node prototype, this paper through the experiment proved the feasibility of automatic identification and analysed the real-time of programme.
     Finally, this paper summed up the work and looked to the next step to further the work.
引文
[1]饶运涛.现场总线CAN原理与应用.北京:北京航空航天大学出版社, 2003. 1~5
    [2]王岩,张福恩.现场总线技术的现状与发展.电子器件, 2001, 24(1): 79~86
    [3] Montestruque, Antsaklis. Stability of model-based networked control systems with time-varying transmission times. Automatic Control, 2004, 49(9): 1562~1572
    [4]顾洪军,张佐,吴秋峰等.网络控制系统的机理描述模型.控制与决策, 2000, 15(5): 634~636
    [5]何早红,刘向阳.控制系统的网络化发展.湘潭师范学院学报(自然科学版), 2004, 26(2): 79~82
    [6] Branicky M.S., Phillips S.M., Wei Zhang. Scheduling and feedback co-design for networked control systems. Decision and Control, 2002, 2(10): 1211~1217
    [7]刘桥,蒋梁中,谢存禧等.集散控制系统与现场总线控制系统.现代电子技术, 2003, 12(13): 89~93
    [8]吴迎年,张建华.网络控制系统研究综述.现代电力, 2003, 20(5): 74~81
    [9] Ai Hong, Wang Jie. Configuration plan of control project in DCS application system. Computer Measurement & Control, 2003, 11(8): 590~592
    [10] Lian Fengli. Network design consideration for distributed control systems. Control Systems Technology, 2002, 10(2): 297~307
    [11]史久根,张培仁,陈真勇等. CAN现场总线系统设计技术.北京:国防工业出版社, 2004. 1~57
    [12]何艳,纪彬,田力等. CAN总线技术在过程控制系统中的应用.自动化技术与应用, 2004, 23(7): 31~33
    [13]满庆丰. CAN总线的应用与发展.电子技术应用, 1994, 5(12): 2~4
    [14]陈积明,王智,孙优贤等.工业以太网的研究现状及展望.化工自动化及仪表, 2001, 28(6): 1~4
    [15]王桂荣,钱剑敏. CAN总线和基于CAN总线的高层协议.计算机测量与控制, 2003, 11(5): 391~394
    [16] Zeltwanqer, Holqer. CANopen network specification for lift control system. Elevator Word, 2004, 52(3): 101~103
    [17] Cena, Gianluca. A protocol for automatic node discovery in CANopen networks. IEEE Transactions on Industrial Electronics, 2003, 50(3): 419~430
    [18] Bieqacki, Steve. Application of DeviceNet in process control. ISA Transactions, 1996, 35(2): 169~176
    [19]宋立.基于SAE J1939协议的CAN总线车灯故障诊断系统的实现.工业控制计算机, 2007, 20(9): 25~26, 28
    [20]刘鲁源,万仁君,李斌等.基于TTCAN协议的网络控制系统静态调度算法的研究.控制与决策, 2004, 19(7): 813~816
    [21]严仪键,孟桥,王钧等. USB设备的接口设计及其即插即用功能的实现.计算机应用, 2001, 27 (7): 8~14
    [22] Tracht, Allen. Connecting with the new universal serial bus. EE: Evaluation Engineering, 1998, 37(7): 12~14
    [23] Anon. Universal plug and play. Electronic Design, 2001, 49(4): 90
    [24] Manes, Stephen. Plug and play? No way!. PC Word, 2005, 23(6): 162
    [25] Brent A. Miler, Toby Nixon. Home Networking with Universal Plug and Play. IEEE Communication Magzine, 2001, 39(12): 104~109
    [26]范新运.基于UPnP的家庭智能系统研究与实践: [硕士学位论文].西安:西北工业大学图书馆, 2003
    [27]张振川,孙琳琳.基于CEBus的家庭局域网络物理层研究.计算机工程与设计,2004, 25(2): 255~258
    [28]吴仲城,卞亦文,汪增福等.网络化智能传感器及其即插即用接口设计.武汉大学学报(信息科学版), 2003, 28( 2): 242~247
    [29]高国富,罗均.智能传感器及其应用.北京:化学工业出版社, 2005. 1~40
    [30] Bryzek, J. Introduction to IEEE-P 1451, the emerging hardware-independent communication standard for smart transducer. Sensors an Actuators, A: Physical, 1997, 62(3): 711~723
    [31] Brill, Manfred. DIE ANWENDERNAHEN SCHICHTEN IM ISO/OSI-MODELL. Elektronik, 1998, 37(6): 76~82
    [32]俞震,胡协和.现场总线的核心—数据链路层综述.化工自动化仪表, 1998, 25(1): 36~41
    [33] Xu Zhe, Chen Tao. Application of CANopen based on embedded system. Jilin Daxue Xuebao of Jilin University, 2007, 37(3): 205~208
    [34]谢希仁.计算机网络.第二版.北京:电子工业出版社, 1999. 1~226
    [35]王毅峰,李令奇.基于CAN总线的分布式数据采集与控制系统.工业控制计算机杂志社, 2000, 13(5): 34~38
    [36]肖海荣,周风余.基于SJA1000的CAN总线系统智能节点设计.计算机自动测量与控制, 2001, 9(2): 48~49, 58
    [37]潘琢金,施国君. C8051Fxxx高速SOC单片机原理及应用.北京:北京航空航天大学出版社, 2002. 206~211
    [38]高建华,李虹光,陈帅等.基于S3C44B0X和MCP2510的CAN总线接口的实现.现代电子技术, 2006, 18(11): 50~52
    [39]孙树文,杨建武,张慧慧等. CAN总线在车辆分布式控制系统中的应用.微计算机信息, 2007, 23(3): 45~47
    [40]李小玲.通信接口专题综述.攀枝花学院学报, 2004, 21(4): 89~93
    [41]赵元黎,杨雷.微机接口技术.郑州:黄河水利出版社, 1998. 44~47, 52~55
    [42]童长飞. C8051F系列单片机开发与C语言编程.北京:北京航空航天大学出版社, 2005. 1~24
    [43]严蔚敏,吴伟民.数据结构.北京:清华大学出版社, 1997. 140~162
    [44]王毅. CAN网络信息传输的实时性分析.天津工业大学学报, 2005, 24(2): 43~46