CANoe快速入门

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

©2008.HiRainTechnologies.Allrightsreserved.CANoeCANoeCANoeCANoe快速入门©2007.HiRainTechnologies.Allrightsreserved.Slide:典型的汽车网络拓扑2Powertrain/ChassisPowertrain/ChassisPowertrain/ChassisPowertrain/ChassisEMSEMSEMSEMSEMSEMSEMSEMSACCACCACCACCACCACCACCACCTCUTCUTCUTCUTCUTCUTCUTCUCANCANCANCANComfort/BodyComfort/BodyComfort/BodyComfort/BodyBCMBCMBCMBCMBCMBCMBCMBCMRoofRoofRoofRoofRoofRoofRoofRoofDoorDoorDoorDoorDoorDoorDoorDoorSeatSeatSeatSeatSeatSeatSeatSeatCANCANCANCANSensor/ActuatorSensor/ActuatorSensor/ActuatorSensor/ActuatorSensorSensorSensorSensorSensorSensorSensorSensorSensorSensorSensorSensorSensorSensorSensorSensorActuatorActuatorActuatorActuatorActuatorActuatorActuatorActuatorLINLINLINLINInfotainmentInfotainmentInfotainmentInfotainmentTelephoneTelephoneTelephoneTelephoneTelephoneTelephoneTelephoneTelephoneTVTunerTVTunerTVTunerTVTunerTVTunerTVTunerTVTunerTVTunerNavigationNavigationNavigationNavigationNavigationNavigationNavigationNavigationMOSTMOSTMOSTMOSTInstrumentInstrumentInstrumentInstrumentclusterclusterclusterclusterInstrumentInstrumentInstrumentInstrumentclusterclusterclusterclusterEPSEPSEPSEPSEPSEPSEPSEPSESPESPESPESPESPESPESPESPGatewayGatewayGatewayGatewayFlexRayFlexRayFlexRayFlexRayCDPlayerCDPlayerCDPlayerCDPlayerCDPlayerCDPlayerCDPlayerCDPlayerX-by-WireX-by-WireX-by-WireX-by-WireGatewayGatewayGatewayGatewayGatewayGatewayGatewayGatewayDiagnosticsDiagnosticsDiagnosticsDiagnosticsOBD-IIOBD-IIOBD-IIOBD-IICANCANCANCAN©2007.HiRainTechnologies.Allrightsreserved.Slide:总线开发流程3OEM供应商标定网络定义仿真验证代码实现测试分析©2007.HiRainTechnologies.Allrightsreserved.Slide:CANoeCANoeCANoeCANoe概述�CAN总线开发工具�仿真�测试�分析�记录4©2007.HiRainTechnologies.Allrightsreserved.Slide:CANoeCANoeCANoeCANoe组成�功能强大、操作简单�CANoe�数据库支持�CANdb++Editor�可编程�CAPL�虚拟仪表�PanelEditor&PanelDesigner5©2007.HiRainTechnologies.Allrightsreserved.Slide:6第一阶段–网络设计和仿真仿真验证CANoeCANoeCANoeCANoeSimulationSetupSimulationSetupSimulationSetupSimulationSetupMeasurementSetupMeasurementSetupMeasurementSetupMeasurementSetupCANoeCANoeCANoeCANoe在总线开发中的作用(1111)数据库CANdb++EditorCANdb++EditorCANdb++EditorCANdb++EditorDBCDBCDBCDBCCANdatabaseCANdatabaseCANdatabaseCANdatabase硬件接口卡&&&&““““狗””””CANcaseXL/CANcardXLCANcaseXL/CANcardXLCANcaseXL/CANcardXLCANcaseXL/CANcardXL©2007.HiRainTechnologies.Allrightsreserved.Slide:CANoeCANoeCANoeCANoe在总线开发中的作用(2222)7第二阶段–节点设计物理网络物理网络硬件接口CANCANCANCANCANCANCANCANtransceivertransceivertransceivertransceivertransceivertransceivertransceivertransceiverMCUMCUMCUMCUMCUMCUMCUMCUCANCANCANCANCANCANCANCANcontrollercontrollercontrollercontrollercontrollercontrollercontrollercontrollerphys.busCANdb++EditorCANdb++EditorCANdb++EditorCANdb++Editor****.dbc.dbc.dbc.dbcCANoeCANoeCANoeCANoe仿真网络仿真网络仿真节点仿真节点11111111仿真节点仿真节点22222222simulatedrest-of-bus©2007.HiRainTechnologies.Allrightsreserved.Slide:CANoeCANoeCANoeCANoe在总线开发中的作用(3333)8第三阶段–系统集成物理节点物理节点11111111物理节点物理节点22222222CANCANCANCANCANCANCANCANtransceivertransceivertransceivertransceivertransceivertransceivertransceivertransceiverMCUMCUMCUMCUMCUMCUMCUMCUCANCANCANCANCANCANCANCANcontrollercontrollercontrollercontrollercontrollercontrollercontrollercontrollerAnalysis硬件接口©2007.HiRainTechnologies.Allrightsreserved.Slide:9CANCANCANCAN总线接口�硬件接口卡&“狗”�CANcardXL/CANcaseXL�VN16XX系列�VN3300/3600/7600�收发器�CANpiggy251,1041,1054…�LINpiggy7259�FlexRaypiggy1080AmagUSBUSBUSBUSBCAN/LIN/FlexRayCAN/LIN/FlexRayCAN/LIN/FlexRayCAN/LIN/FlexRayECUECUECUECUBusInterfaceBusInterfaceBusInterfaceBusInterface©2007.HiRainTechnologies.Allrightsreserved.Slide:基本术语————————报文(消息)与信号10报文:enginedata(ID100)ID100B0B1B2CRC信号发动机温度(第三字节,0-6位)未用(第三字节,第七位)发动机转速(第一,二字节)转换规则发动机转速:rpm=1*Bitvalue(0xFF代表错误)发动机温度:ºC=2*Bitvalue–50(0x7F代表错误)©2007.HiRainTechnologies.Allrightsreserved.Slide:基本术语————————环境变量与系统变量�环境变量�节点的I/O信号�可用于面板或真实I/O�系统变量�节点内部参数�或需要观测的某个数值�例如:系统变量1=报文1.信号1-报文2.信号211©2007.HiRainTechnologies.Allrightsreserved.Slide:准备工作(1/5)(1/5)(1/5)(1/5)�CANoe�确认CAN卡license信息�控制面板-VectorHardware12©2007.HiRainTechnologies.Allrightsreserved.Slide:准备工作(2/5)(2/5)(2/5)(2/5)�CANoe�新建配置工程13©2007.HiRainTechnologies.Allrightsreserved.Slide:�CANoe�通道数设置�Configuration-Options�MeasurementChannelUsage14准备工作(3/5)(3/5)(3/5)(3/5)©2007.HiRainTechnologies.Allrightsreserved.Slide:�CANoe�通道配置�Configuration-HardwareConfiguration-Driver15准备工作(4/5)(4/5)(4/5)(4/5)©2007.HiRainTechnologies.Allrightsreserved.Slide:�CANoe�波特率设置�Configuration-HardwareConfiguration16准备工作(5/5)(5/5)(5/5)(5/5)©2007.HiRainTechnologies.Allrightsreserved.Slide:CANCANCANCAN总线开发StepOneStepOneStepOneStepOne:新建数据库�DBC文件编辑工具�启动CANoe�Tools-OpenCANdbEditor�点击17©2007.HiRainTechnologies.Allrightsreserved.Slide:创建一个新的CANCANCANCAN数据库�File-CreateDatabase…�选择模板,鼠标双击或按[OK][OK][OK][OK]按钮�指定数据库文件类型、文件名及保存目录�按[Save][Save][Save][Save]按钮。一个新数据库创建完成18©2007.HiRainTechnologies.Allrightsreserved.Slide:创建对象(信号、报文、节点、环境变量和ECUECUECUECU)�在Overview窗口左边选择所需创建对象的类型�右键点击对象类型,在快捷菜单中选择New…�使用配置对话框设置所创建对象的系统参数值�点击[确定]按钮,一个新对象便创建完毕19©2007.HiRainTechnologies.Allrightsreserved.Slide:复制已有对象�Copy-Paste�选择已有对象Ctrl+c�选择对象类型Ctrl+v20©2007.HiRainTechnologies.Allrightsreser

1 / 92
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功