当前位置:网站首页>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
边栏推荐
- Daily question (retrospective)
- 1. Author of the open source GPS project hd-gr GNSS
- 全国985院校考研信息汇总整理
- Here comes the full open source free customer service system
- 如何获取及嵌入Go二进制执行包信息
- 有奖活动分享:使用WordPress搭建一个专属自己的博客后最高可领取iPhone13
- [jspwiki]jspwiki installation deployment and configuration
- Nftscan and nftplay have reached strategic cooperation in the field of NFT data
- Share the HR experience of the first and second tier companies
- Cross domain problems in the configuration of.Net core version 3.1
猜你喜欢

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

Learn PHP reflection classes from ThinkPHP remote code execution

Srtt-110vdc-4h-c time relay

No files or folders found to process

Shellcode writing (unfinished)

7/13 (pond sampling)

flowable工作流所有业务概念

MIT指出公开预训练模型不能乱用

DataTables warning: table id=campaigntable - cannot reinitialize datatable. solve

Customer service system attached to crmeb Standard Edition
随机推荐
Qt创建文件夹的两种方式区别
【通道注意力机制】SENet
DataTables warning: table id=campaigntable - cannot reinitialize datatable. solve
1、开源GPS项目HD-GR GNSS的著作者
.net core 2.2 版本跨域配置
2022年最火的十大测试工具,你掌握了几个
MySQL 8.0 common (continuous update)
【删除指定数字——leetcode]
Leetcode - random set, longest multiclass subsequence
分享一下一二线大厂HR面经分享
ERROR:bokeh.core.validation. check:E-1001 (BAD_COLUMN_NAME)
全国985院校考研信息汇总整理
Installing CONDA and configuring Jupiter
Vs usage skills
Some operations of bit operation
字符数组和字符串的区别
正则表达式(4)
提速1200倍!MIT开发新一代药物研发AI,吊打老模型
Crmeb knowledge paid manual installation tutorial
19、通道分配任务定义