Unable to connected to xcp using peak system

5 visualizaciones (últimos 30 días)
Ashraf
Ashraf el 26 de Jun. de 2024
Respondida: praguna manvi el 12 de Sept. de 2024
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

Respuestas (1)

praguna manvi
praguna manvi el 12 de Sept. de 2024
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!

Etiquetas

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by