当前位置:网站首页>Canoe tutorial
Canoe tutorial
2022-07-28 15:36:00 【Embedded Yuexiang Garden】
CANoe Use the tutorial
Preface
CANoe It's Germany Vector A bus development environment designed by the company for the development of automobile bus , Full name CAN open environment. Same as Vspy equally ,CANoe Integrated network monitoring 、 Data acquisition / Record 、 Node simulation 、 The diagnosis 、 Automatic test and other functions ; Its rich functions and configuration options make it also common in the automotive electronics industry . Next, for CANoe Common operations of , It can be divided into the following points :
CANoeNew construction of the project ;- adopt
TraceThe tool checks the interactive message content ; - adopt
LoggingSave the log file ; - establish
IGSend message ; - adopt
GraphicsInterface grabs signal waveform ; - load
cddfile ; - Filter message
IDReception ; - other ;

New project
open CANoe Software , On the toolbar File Click on the New, Double click to select the created template , Save the created cfg Engineering documents . as follows :
Bus topology diagram

System variables
System variables It's a special variable , Used to describe a special state or record measurement data . Generally, there are two kinds of definitions: system definition and user definition , Their role is in their respective command space . There is no difference in function , Are equivalent to global variables , Facilitate software data interaction ; Use system variables first .
One 、 Creation of system variables
1、 First click on Environment Under the System Variable
2、 Click... In the pop-up window New System Variable

3、 The parameters needed to create system variables on the pop-up page
Be careful :
Namespace: Defines the name of the system variable group . If you need to create a secondary system variable group in a large system variable group , You need to use theName1::Name2Format .Name: The specific name of the system variable , Subsequent use will directly reference the name .Data type: Choose the type you want , All types supported in the drop-down menu can be seen in the screenshot .Location: The path where the system variable group is stored 、 Name and format . I used in my projectXML/vsysvarTwo formats .Values: Initial value 、 minimum value 、 Maximum 、 Company 、 Value table .
4、 Define the namespace and variable name selection 32 bit signed type , Click on ok that will do 
5、 adopt copy Complete the creation of other variables

6、 You can edit the copied variables by double clicking 
Two 、 The use of system variables
After the system variables are defined , It is equivalent to that we define a Global variables . How to use , We can go through CAPL Internal functions to complete the use .
1、 Create a new Network Node
In turn, click Simulation–> simulation setup–> find simulation setup forms –> Right click Network Node choice Insert Network Node

2、 Create a test.can Files are used to write code


So that we can go straight to test.can Write our code .
establish DBC file
1、 In turn, click tools --> CANdb++ Editor

2、 Click... In the pop-up window File–>Create Database...

3、 Select as shown in the pop-up window CANTemplate.dbc, Click on OK

4、 Give the file a name , And store the file in the location you want to store
5、 Click on MyMsg, The right choice New
6、 To configure Name and ID

7、 stay Signals Now create a signal BusSwitch, The signal setting is shown in the figure below , single click ok preservation .

8、 take BusSwitch Drag to MyMsg below , such BusSwitch It becomes a message MyMsg A signal

9、 So far, the database has been established , Save directly to exit

10、 Import our database , Right click Databases Click on add

CANoe To configure
CANoe The hardware configuration is mainly the choice of baud rate and Protocol . The specific operations are mainly Hardware Medium Network Hardware in .

If you also want to filter the packets of non target frames directly from the hardware layer , You can add filters in the settings . It can be downloaded from DBC Choose from , You can also manually fill .
Mask Express CAN The mask of the filter in the controller , Don't elaborate too much here . If you want to know more about , Please check by yourself Vectore Hardware manual .
If the project has been created CAN The number of networks does not meet the current demand , Can be added by yourself . The specific adding path is shown in the figure below . The added quantity cannot exceed CANoe The maximum number of channels .

Add filter
Right click on the box and select Insert Event Filter->CAN
The configuration is as follows :

Configure filters
1、 double-click CFB
2、 Add to filter out ID Pass filter( According to the ID), Can pass ID Or database .

Note the corresponding channel on the right

Reference article
边栏推荐
猜你喜欢

如何获取及嵌入Go二进制执行包信息

Pycharm - output exception of program run and default comment of added function

CANoe使用教程

No files or folders found to process

flowable工作流所有业务概念

详解.NET的求复杂类型集合的差集、交集、并集

Introduction to grpc

Understand crmeb open source online education knowledge payment system

爆肝整理 JVM 十大模块知识点总结,不信你还不懂

Endnote 与word关联
随机推荐
Vs usage skills
Tencent interview -- please design a thread pool to implement sequential execution
800V高压系统
Volatile principle
Cross domain problems in the configuration of.Net core version 3.1
Endnote 与word关联
Multi merchant mall system with relatively clean code
全国985院校考研信息汇总整理
What functions will be added to crmeb Standard Version 4.4
Crmeb v4.3 deployment process
游戏测试的概念是什么?测试方法和流程有哪些?
Ffmpeg notes
Leetcode - random set, longest multiclass subsequence
Customer service system attached to crmeb Standard Edition
4.8 HD-GR GNSS导航软件源码
Summary of common redis commands (self provided)
The difference between character array and string
MIT指出公开预训练模型不能乱用
9、相关数据累积任务定义
腾讯面试之--请你设计一个实现线程池顺序执行