Unable to connected to xcp using peak system

조회 수: 5 (최근 30일)
Ashraf
Ashraf 2024년 6월 26일
답변: praguna manvi 2024년 9월 12일
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

답변 (1개)

praguna manvi
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!

태그

제품


릴리스

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by