Unable to connected to xcp using peak system
조회 수: 5 (최근 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!