当前位置:网站首页>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
边栏推荐
- 全国211院校考研信息汇总整理
- 10、相关数据累积任务实现
- Leetcode - random set, longest multiclass subsequence
- EasyExcel复杂表头导出(一对多)
- 7、实时数据备份和实时时钟相关定义
- .net core 3.1版本配置跨域问题
- [leetcode] binary search given an N-element ordered (ascending) integer array num and a target value target, write a function to search the target in num. if the target value exists, return the subscr
- 4、主程序和累积中断处理例程实现代码
- Crmeb knowledge paid manual installation tutorial
- MIT指出公开预训练模型不能乱用
猜你喜欢

How many of the top ten test tools in 2022 do you master

最小堆提升每次排序的效率

How many tips do you know about using mock technology to help improve test efficiency?

Pytorch - autograd automatic differentiation

vs动态库调试

简单入手Swagger

800V高压系统

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

Easy start, swagger

Multi merchant mall system with relatively clean code
随机推荐
Self cultivation of programmers
Problems encountered by pyppeter
迟来的2021年终总结
4. Main program and cumulative interrupt processing routine implementation code
4.8 hd-gr GNSS navigation software source code
字符串(3)
2021-06-29
ECCV 2022 | SSP: 自支持匹配的小样本任务新思想
百度提出动态自蒸馏方法,结合交互模型与双塔模型实现稠密段落检索
VS使用技巧
4、主程序和累积中断处理例程实现代码
2022-07-28日报:Science:AI设计蛋白质再获突破,可设计特定功能性蛋白质
9、相关数据累积任务定义
Data synchronization of new version
vs动态库调试
MIT指出公开预训练模型不能乱用
【删除指定数字——leetcode]
7. Definitions of real-time data backup and real-time clock
机器学习的3大“疑难杂症”,因果学习是突破口 | 重庆大学刘礼
根据输入target,返回数组的两个下标。