xcp.Channel 属性
xcp.Channel 对象的属性
使用以下属性检查或配置 xcp.Channel 对象设置。使用 xcpChannel 创建 XCP 通道对象。
xcp.Channel
此 属性 为只读。
A2L 文件中指定的服务器节点的名称,以字符向量形式返回。例如:
xcpch = xcpChannel(a2lfile,'CAN','Vector','Virtual 1',1); sn = xcpch.ServerName
sn =
'CPP'数据类型: char
此 属性 为只读。
引用的 A2L 文件的名称,以字符向量形式返回。
数据类型: char
此 属性 为只读。
用于 XCP 连接的传输层的类型,以字符向量形式返回。例如:
xcpch = xcpChannel(a2lfile,'CAN','Vector','Virtual 1',1); tl = xcpch.TransportLayer
tl =
'CAN'数据类型: char
此 属性 为只读。
XCP 传输层连接详细信息,其中包括有关通道与服务器通信所用的设备的信息,以结构体形式返回。例如:
xcpch = xcpChannel(a2lfile,'CAN','Vector','Virtual 1',1); tld = xcpch.TransportLayerDevice
tld =
struct with fields:
Vendor: 'Vector'
Device: 'Virtual 1'
ChannelIndex: 1数据类型: struct
SeedKeyDLL 属性指示一个 DLL 文件的名称,该文件包含用于解锁 XCP 服务器模块的种子和密钥安全算法。该文件定义根据 ASAM 标准定义从给定种子生成访问密钥的算法。有关文件格式和 API 的信息,请参阅 Vector 网页 Steps to Use Seed&Key Option in CANape 或 NI™ CAN ECU Measurement and Calibration Toolkit User Manual 中的“Seed and Key Algorithm”。注意:DLL 必须与 MATLAB(64 位)的位数相同。
数据类型: char
ConnectMode 属性指定是否允许自定义连接模式。支持的属性值为 'normal'(默认值)和 'user-defined'(允许自定义模式)。您需要在创建通道对象之后、连接之前设置此属性。例如:
xcpch = xcpChannel(a2lfile,'CAN','Vector','Virtual 1',1); xcpch.ConnectMode = 'user-defined'; connect(xcpch);
数据类型: char
版本历史记录
在 R2013a 中推出xcp.Channel 对象有一个名为 ConnectMode 的新属性,用于支持自定义连接模式。
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)