CAN TP Timing parameter set

A free API for the transfer of data packages according to ISO-TP (ISO 15765-2)
Locked
parai
Posts: 4
Joined: Tue 10. Nov 2015, 04:03

CAN TP Timing parameter set

Post by parai » Tue 10. Nov 2015, 04:10

Hello:
I have encounter a issue with the Peak-TP package, the gap time between First Frame and Flow Control is about 12ms, thus the Peak-TP API Read return with error 2 wait flow control timeout, so I want to know is there a API to increase the timeout value to adapt to my ECU server.
Yes, I have read the document, I can't find such kind of API, can you tell me how to fixed this issue as I can't increase my ECU server response time.

F.Vergnaud
Software Development
Software Development
Posts: 170
Joined: Mon 9. Sep 2013, 12:21

Re: CAN TP Timing parameter set

Post by F.Vergnaud » Tue 10. Nov 2015, 10:46

Hello,

Those default timeouts (defined in ISO-15765-2) are set to 1s, so I don't think your issue is related to this. A more common problem is related to the ISO-TP mappings: if you define only a single mapping from your test equipment to the ECU you will be able to send the First Frame of the CANTP message but won't receive the Flow Control from the ECU resulting in a network error n°2 (PCANTP_N_TIMEOUT_Bs).

That is why in PCTPClient for instance you'll see that there is always 2 mappings defined to test communication :

Code: Select all

// Mapping communication from Client to ECU
        CANTP_AddMapping(Channel, 0xA1, 0xA2,
		PCANTP_ID_CAN_11BIT, PCANTP_FORMAT_NORMAL, PCANTP_MESSAGE_DIAGNOSTIC,
		N_SA, N_TA_PHYS, PCANTP_ADDRESSING_PHYSICAL, 0x00);
// Mapping communication from ECU to Client
	CANTP_AddMapping(Channel, 0xA2, 0xA1,
		PCANTP_ID_CAN_11BIT, PCANTP_FORMAT_NORMAL, PCANTP_MESSAGE_DIAGNOSTIC,
		N_TA_PHYS, N_SA, PCANTP_ADDRESSING_PHYSICAL, 0x00);
Best regards,
Fabrice

parai
Posts: 4
Joined: Tue 10. Nov 2015, 04:03

Re: CAN TP Timing parameter set

Post by parai » Fri 13. Nov 2015, 09:50

Yeah:
That's the issue, I just call the mapping once as I think mapping once is enough.

Locked