Unable to connected to xcp using peak system
4 次查看(过去 30 天)
显示 更早的评论
I am able to connect to XCP device using vector hardware with below commands:
canch = canChannel('Vector','VN1610 1',1);
configBusSpeed(canch,1000000);
start(canch);
a2linfo = xcpA2L('MyA2l.a2l');
xchph = xcpChannel(a2linfo,'CAN','Vector','VN1610 1',1);
connect (xchph);
isConnected (xchph)
Not able to connect to XCP device using PEAK hardware with below commands:
canch = canChannel('PEAK-System','PCAN_USBBUS1');
configBusSpeed(canch,1000000);
start(canch);
a2linfo = xcpA2L('MyA2l.a2l');
xchph = xcpChannel(a2linfo,'CAN','PEAK-System','PCAN_USBBUS1');
connect (xchph);
isConnected (xchph)
Note: I am able to transmit message using PEAK CAN with this commands:
messageout = canMessage(0x500,false,8);
pack(messageout,25,0,16,'LittleEndian');
transmit(canch,messageout);
I am getting the below error:
Regards,
Ashraf
0 个评论
回答(1 个)
praguna manvi
2024-9-12
Hi Ashraf,
As per my understanding, you are able to connect to PEAK CAN but not to the XCP server. To troubleshoot the connection to the "XCP" server, you could check whether the "A2L" file has the "ProtocolLayerInfo," "TransportLayerCANInfo," "Measurements," "DAQInfo," and "Eventsfields" fields configured correctly.
Here is a link to a similar question regarding the Kvaser connection to an "XCP" server answered by the support team:
Refer to the documentation below for more information on configuring the "A2L" file:
Hope this helps!
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!