Vector CANoe CAPL系列相关文章导览,下面链接可直接跳转
Vector CANoe VT System系列板卡文章导览,下面链接可直接跳转
引言
本章节继续聊VT6104B网络接口板卡(总线)的功能,板卡详细内容见VT_System_Manual_EN.pdf,该板卡手上暂时没有,以下内容为个人研究手册理解,如有错误,欢迎指正
有两个类型分别是如下:
VT6104B
The four-channel CAN/LIN Network Module VT6104B is a high-performance interface module for the VT System. Typically, the Real-time Module VT6000 is used together with the VT6104B network interface. The module delivers high performance and low latency times, because a SFF 8644 PCIe cable is used to connect the network interface to the VT6000 real-time module or a PC.
Additionally, the Network Module VT6104B provides some relays to control the transceivers (e.g. to supply the transceiver with Vbatt), to switch termination resistors on and off, and to fed electrical faults (e.g. short-circuit to Vbatt) into the signal lines.
总结一下:
VT6104B有四个通道CAN/LIN通道,通常与VT6000实时模块一起使用。模块提供高性能和低延迟时间
另外,VT6104B提供一些继电器来控制收发器(如为收发器提供 Vbatt 电压)、开关终端电阻器以及将电气故障(如 Vbatt 短路)输入信号线。
VT6204B
功能与VT6104B相同,只有channel 1-2两个通道支持FlexRay总线
总线通讯功能和VN16xx系列一致,只是多了一些可以做一致性测试的功能,并且不能像VN16xx系列那样单独使用
前后面板图
VT6104B
VT6204B
Usage
Basic Connection Scheme
Each of the four CAN/LIN channels and the two FR channels (port 1 of VT6204B) leads out to an individual connector. You normally connect the bus lines to the ECU. In this respect, these connections are like the ECU connections of other VT modules.
四个 CAN/LIN 通道和两个 FR 通道(VT6204B 的端口 1)分别连接到一个单独的连接器。总线线路通常连接至 ECU。在这方面,这些连接与其他 VT 模块的 ECU 连接相同。
The bus connection’s Ground also leads separately to each connector. It is important that you connect Ground because the CAN/LIN/FR transceiver is galvanically isolated. However, you can also create a grounding connection internally using a relay,which may make external wiring unnecessary.
总线连接的地线也分别通向每个连接器。连接地线非常重要,因为 CAN/LIN/FR 收发器是
电隔离
的。不过,您也可以使用继电器在内部建立接地连接,这样就不需要外部接线了。
You can use the connectors of the four channels to connect additional pins of the CAN/LIN piggybacks.
您可以使用四个通道的连接器连接 CAN/LIN 搭铁的其他针脚。
These are intended for special functions and should only be used when needed. You can also use them internally with relays.
这些接头用于特殊功能,只有在需要时才可使用。您也可以在内部使用继电器。
Signal Path Switching
图不复杂,慢慢看
接插件定义
看手册14.5章节
Technical Data
手册中都有,这里再贴一下
General
Signal and switching
CAN/LIN/FlexRay Interface
CAPL实例
VT System Configuration
连接板卡,不知道咋操作的,看这里里面有详细说明
VT System Control
没啥配的,上面板卡注册成功后,就会同时注册系统变量,控制操作通过系统变量进行
System Variables
System-defined
创建variables
根据需要创建如下variables以便于后续panel和capl进行调用
制作Panel
- 短路
- CANH开路/CANL开路
- CANH对地短路/CANL对地短路
- CANH对电源短路/CANL对电源短路
- 使能终端电阻
编写CAPL脚本
短路
on sysvar sysvar::VT6104::Ch1_ShortCircuit
{
// Send setting from the panel to the VT module
@sysvar::VTS::Network_Ch1::RelayShortCircuit = @sysvar::VT6104::Ch1_ShortCircuit;
// Change LED accordingly on th panel
UpdateFaultLEDs();
}
CANH 开路
on sysvar sysvar::VT6104::Ch1_OpenHigh
{
// Send setting from the panel to the VT module
@sysvar::VTS::Network_Ch1::RelayOpenHigh = @sysvar::VT6104::Ch1_OpenHigh;
// Change LED accordingly on th panel
UpdateFaultLEDs();
}
CANL 开路
on sysvar sysvar::VT6104::Ch1_OpenLow
{
// Send setting from the panel to the VT module
@sysvar::VTS::Network_Ch1::RelayOpenLow = @sysvar::VT6104::Ch1_OpenLow;
// Change LED accordingly
UpdateFaultLEDs();
}
CANH 对地短路
on sysvar sysvar::VT6104::Ch1_ToGndHigh
{
// Open high line first
@sysvar::VT6104::Ch1_OpenHigh = 1;
// Send setting from the panel to the VT module
@sysvar::VTS::Network_Ch1::RelayHighToGnd = @sysvar::VT6104::Ch1_ToGndHigh;
// Change LED accordingly
UpdateFaultLEDs();
}
CANL 对地短路
on sysvar sysvar::VT6104::Ch1_ToGndLow
{
// Open high line first
@sysvar::VT6104::Ch1_OpenLow = 1;
// Send setting from the panel to the VT module
@sysvar::VTS::Network_Ch1::RelayLowToGnd = @sysvar::VT6104::Ch1_ToGndLow;
// Change LED accordingly
UpdateFaultLEDs();
}
CANH 对电源短路
on sysvar sysvar::VT6104::Ch1_ToUbatHigh
{
// Open high line first
@sysvar::VT6104::Ch1_OpenHigh = 1;
// Send setting from the panel to the VT module
@sysvar::VTS::Network_Ch1::RelayHighToVBatt = @sysvar::VT6104::Ch1_ToUbatHigh;
// Change LED accordingly
UpdateFaultLEDs();
}
CANL 对电源短路
on sysvar sysvar::VT6104::Ch1_ToUbatLow
{
// Open high line first
@sysvar::VT6104::Ch1_OpenLow = 1;
// Send setting from the panel to the VT module
@sysvar::VTS::Network_Ch1::RelayLowToVBatt = @sysvar::VT6104::Ch1_ToUbatLow;
// Change LED accordingly
UpdateFaultLEDs();
}
使能终端电阻
@sysvar::VTS::Network_Ch1::RelayTermination = 0; // deactivate
@sysvar::VTS::Network_Ch1::RelayTermination = 1; // activate
编译返回canoe主界面上的panel测试
项目实例
如有问题,请关注,点赞,收藏,后台私信~~~
当前使用场景也比较单一,文中可能有部分内容未提及,或有误,请指出,谢谢!
公众号
欢迎关注公众号,加入专业技术交流。