Search found 138 matches

by F.Vergnaud
Wed 24. Feb 2021, 13:23
Forum: PCAN-UDS
Topic: Problem with sending Diag session control using CAN FD
Replies: 8
Views: 99

Re: Problem with sending Diag session control using CAN FD

Glad to hear that! For completeness and as knowledge base, here is an example of how one could send a UDS request with a 64 bytes single CAN FD frame (using UUDT): // Initialize channel const String BITRATE = "f_clock_mhz=80, nom_brp=1, nom_tseg1=127, nom_tseg2=32, nom_sjw=32, data_brp=2, data_tseg1...
by F.Vergnaud
Wed 24. Feb 2021, 09:48
Forum: PCAN-UDS
Topic: Problem with sending Diag session control using CAN FD
Replies: 8
Views: 99

Re: Problem with sending Diag session control using CAN FD

The issue I described is only valid for ISO-TP single frame. ISO-TP segmented messages have by definition a data length bigger than the configured TX_DL, so the segmentd frames will use the dlc you set (apart from the last Consecutive frame which will adapt the dlc to fit the remaining data). So, yo...
by F.Vergnaud
Tue 23. Feb 2021, 17:46
Forum: PCAN-UDS
Topic: Problem with sending Diag session control using CAN FD
Replies: 8
Views: 99

Re: Problem with sending Diag session control using CAN FD

You can change the can data padding value to 0x00 with the parameter PUDS_PARAMETER_CAN_PADDING_VALUE . You will then send a UDS request with the following 8 bytes data: 02 10 03 00 00 00 00 00. However you will NOT be able to send a UDS request with an actual UDS data size of 2 in a CAN FD frame wi...
by F.Vergnaud
Tue 23. Feb 2021, 16:34
Forum: PCAN-UDS
Topic: Problem with sending Diag session control using CAN FD
Replies: 8
Views: 99

Re: Problem with sending Diag session control using CAN FD

Hello, "can_tx_dlc" is a parameter that allows you to configure the transmit data link layer data length (TX_DL) as defined in ISO 15765. But be careful as TX_DL only configures the maximum usable payload length of the data link layer. This means that UDS requests will actually use the smallest dlc ...
by F.Vergnaud
Fri 19. Feb 2021, 12:00
Forum: PCAN-UDS
Topic: UDS Service TransferData with MAX_DATA (4093 bytes) length
Replies: 24
Views: 486

Re: UDS Service TransferData with MAX_DATA (4093 bytes) length

If you are using PUDS_PROTOCOL_ISO_15765_2_29B, you don't have to configure extra mappings: it is handled automatically by the API as the CAN IDs used to communicate are standardized. 1) Is it require to use PUDS_PARAM_MAPPING_REMOVE to remove when we are using PUDS_PROTOCOL_ISO_15765_2_29B? No 2) I...
by F.Vergnaud
Fri 19. Feb 2021, 10:37
Forum: PCAN-UDS
Topic: UDS Service TransferData with MAX_DATA (4093 bytes) length
Replies: 24
Views: 486

Re: UDS Service TransferData with MAX_DATA (4093 bytes) length

Hello, How to identify undefined and incorrect mapping? You have to define mappings for any communication that is not listed in the documentation §4.3 4.3 UDS and ISO-TP Network Addressing Information: page 339. Should we need to uninitialize channel and again initialize? No. Here is a sample that s...
by F.Vergnaud
Thu 18. Feb 2021, 15:38
Forum: PCAN-UDS
Topic: UDS Service TransferData with MAX_DATA (4093 bytes) length
Replies: 24
Views: 486

Re: UDS Service TransferData with MAX_DATA (4093 bytes) length

Hello, You received the following network error PCANTP_N_TIMEOUT_Bs(0x02) : Sender side timeout while waiting for flow control frame. This means the UDS channel didn't receive the Flow Control frame from the ECU. There can be 2 reasons, you'll need to check your trace file: - if the flow control fra...
by F.Vergnaud
Wed 17. Feb 2021, 16:47
Forum: PCAN-UDS
Topic: UDS Service TransferData with MAX_DATA (4093 bytes) length
Replies: 24
Views: 486

Re: UDS Service TransferData with MAX_DATA (4093 bytes) length

Hello, 1) With version 1.x, the status is not precise enough to tell if you didn't receive the request confirmation or a response. You need to use the function with 4 parameters: Status = UDS_WaitForService(Channel, &MessageResponse, &Message, &RequestConfirmation); In any case it is a recommended p...
by F.Vergnaud
Wed 17. Feb 2021, 14:38
Forum: PCAN-UDS
Topic: UDS Service TransferData with MAX_DATA (4093 bytes) length
Replies: 24
Views: 486

Re: UDS Service TransferData with MAX_DATA (4093 bytes) length

Ya PEAK Trace in milliseconds only PUDS_PARAM_SEPERATION_TIME is deafault 10 sec but it depends on ECU. ECU sending flow control frame with data 30 00 00 : In that 00 indicate client can send data as fast as it can. I agree with STMin=00 and BS=00, the sender will transmit the data as quickly as po...
by F.Vergnaud
Wed 17. Feb 2021, 10:41
Forum: PCAN-UDS
Topic: UDS Service TransferData with MAX_DATA (4093 bytes) length
Replies: 24
Views: 486

Re: UDS Service TransferData with MAX_DATA (4093 bytes) length

Hello, 1) What can be possible scenario or use cases it can send response like that? It is not possible to achieve this behaviour using the sample function testTransferDataBigMessage. In the following example, I have added a "for" loop to simulate and test your need: // UDS Service TransferData with...