当前位置:网站首页>Vector CANape - How to Send Receive CAN Message in CANape
Vector CANape - How to Send Receive CAN Message in CANape
2022-07-26 18:27:00 【CDamogu】
How to Send Receive CAN Message in CANape
Background summary
background
Why is this an article of value 10W+ The article ?
Because I was looking for a third party to develop a product based on CANape Calibration system , The price offered by the third party is 15W, At that time, I thought a lot about this tool , Finally, it developed from nothing based on CANape Calibration system , Of course , This article will give you a lot of inspiration .
author
Liuwanqiang 2020/11/27
Write This Artical to Record my notes,Whenever I forget the detail in Operated CANape.
The goal is
stay CANape To realize CAN Sending and receiving of messages Target
Message reception
There are two ways to receive Device | New Device | New from database
- Device New
adopt Device Configuration Create a Monitor Class CAN node , Then enter the drive device name ( Custom English ), as for comment Depending on personal preference .

- Click on
Next - Uncheck the
use database for signal definition - Click on
Next - Point selection
Ok

- As shown in the figure above , Check the response node
- Click the lightning sign to start to accept the message
- Devie New from database
If you master the first method , Then the second method is to build directly from the database , The premise is that you already have the project DBC file , Click directly as shown in the figure below Ok, Then the operation is similar

The advantage is that you can parse the received CAN message
Message sending
about CAN There are two kinds of message sending :
- No, DBC file , Randomly send a custom
CAN ID
give an example : send out CAN ID by 0x100 Of CAN Message , Data field is 1,2,3,4,5 .Tools | Function and script Open the function editor , stay Script Now create the following script and compile
//API
Device.SendMessage(messageID,value0,value1,)
// For example, I created DMGCanMsgSend Of Device
DMGCanMsgSend.SendMessage(0x100,1,2,3,4,5)

After compiling, you can make a panel with keys , Every time you click a key CAN Message sending .
tip
Create panels and data 、 Links between scripts , That is to change the sending function through the input value of the panel ID、 Data field

warning Be careful
Create global variables , Through global variables, scripts and panels can open a bridge of communication , So as to solve the communication between the panel and script data
- Yes DBC file , Realize periodic or random transmission CAN data .
The basic idea is to create CAN Message sending function , Call the function periodically in the measurement configuration window , So as to achieve CAN The message is sent periodically .
give an example : Still in Function and Script Window Function Create a new global variable for sending data
边栏推荐
- 贪心——455. 分发饼干
- Privacy computing basic component series - confusion circuit
- OpenGL中的视差贴图的着色器代码
- 2020美亚个人赛复盘
- LeetCode50天刷题计划(Day 3—— 串联所有单词的子串 10.00-13.20)
- 【Unity3D】摇杆
- 剑指offer 正则表达式匹配
- Linux安装mysql8.0.29详细教程
- 你适合做自动化 测试吗?
- Laozi cloud and Fuxin Kunpeng achieved a major breakthrough in 3D ofd 3D format documents for the first time
猜你喜欢

8.2 some algebraic knowledge (groups, cyclic groups and subgroups)

It is said that the salary of Alibaba P7 is really fragrant

Meta Cambria手柄曝光,主动追踪+多触觉回馈方案

Vector CANape - How to Send Receive CAN Message in CANape

剑指offer 连续子数组的最大和(二)

Become a test / development programmer, Xiao Zhang: reality is coming

2022年的PMP考试大纲是什么?

PS_ 1_ Know the main interface_ New document (resolution)_ Open save (sequence animation)

俄语翻译的就业前景怎样 如何做好俄语翻译工作

Bulletgraph (bullet diagram, bullet diagram)
随机推荐
Quartz trigger rule
Day 4 of SSM practice_ Get user name_ User exit_ User CRUD_ Password encryption_ Roles_ jurisdiction
Apartment rental system based on JSP
The third day of SSM practice_ Paging assistant_ Security framework
Relative path and absolute path
Redis persistent rdb/aof
[kitex source code interpretation] service discovery
.net CLR GC dynamic loading transient heap threshold calculation and threshold excess calculation
【英雄哥七月集训】第 25天: 树状数组
How to assemble a registry
Is it safe for me to open the securities account of CITIC and find the channel manager?
Laozi cloud and Fuxin Kunpeng achieved a major breakthrough in 3D ofd 3D format documents for the first time
云服务器mySQL提示报错
LeetCode50天刷题计划(Day 5—— 最长回文子串 10.50-13:00)
[unity3d] rocker
LeetCode50天刷题计划(Day 1—— 两数相加 11.00-12.30)
你适合做自动化 测试吗?
【一知半解】线程池
MySQL 遇到过死锁问题吗,你是如何解决的?
网上炒股,选择在哪里开户比较安全呢?