A free API for the communication with control units based on the Universal Measurement and Calibration Protocol (XCP) by ASAM for Windows®
-
crespira
- Posts: 2
- Joined: Thu 4. Apr 2019, 09:22
Post
by crespira » Thu 4. Apr 2019, 09:43
Hi all,
I'm using XCP-API on CAN and I'm able to send and receive message with some ECUs.
Now I have to set a connection with a slave that is expected to receive LEN=2 in connect command, without tail field. I saw that Connect function in XCP-API send always an 8 bytes message (2 bytes parameter + 6 bytes tail filled with 0x00 value).
Is there someway to change len? Or I have to ask for changing in slave ECU software?
Thanks anyone will answer me,
Raffaele Crespi
NB=Sorry for my poor english

-
K.Wagner
- Software Development

- Posts: 1080
- Joined: Wed 22. Sep 2010, 13:36
Post
by K.Wagner » Thu 4. Apr 2019, 09:54
Hello,
PCAN-XCP always use MAX_DLC (8). If the length of the XCP frame is less than 8, then fill bytes are used (the tail is always present). Unfortunately, this cannot be changed.
Best regards,
Keneth
-
crespira
- Posts: 2
- Joined: Thu 4. Apr 2019, 09:22
Post
by crespira » Thu 4. Apr 2019, 10:17
Hi again,
thanks for answering so fast.
I going to ask for changing software in slave ECU.
Regards,
Raffaele