Search found 4 matches

by vmedvedev
Wed 8. May 2024, 00:26
Forum: PCAN-UDS
Topic: Security Access call failing with error 11 - serviceNotSupported
Replies: 1
Views: 2137

Security Access call failing with error 11 - serviceNotSupported

Hi,
I am trying to run SvcSecurityAccess_2013 to get a seed. I am using custom ECU so I deleted mappings and add custom mapping

cantp_status mappingResult;
uds_mapping request_mapping = new uds_mapping();
uds_mapping response_mapping;
request_mapping.can_id = 0x781;
request_mapping.can_id_flow ...
by vmedvedev
Fri 3. May 2024, 23:33
Forum: PCAN-UDS
Topic: UDS testDiagnosticSessionControl
Replies: 5
Views: 3586

Re: UDS testDiagnosticSessionControl

Hi,
thank you very much for your help. After deleting default mappings and using UDSApi.AddMapping_2013 instead of AddMapping_2016 the timeout error went away. It is working both with padding disabled (mixed mode) and padding enabled with value set to 0.
by vmedvedev
Thu 2. May 2024, 17:32
Forum: PCAN-UDS
Topic: UDS testDiagnosticSessionControl
Replies: 5
Views: 3586

Re: UDS testDiagnosticSessionControl

Hi,
thank you for your suggestions.
I tested both disabling padding

dw_buffer = CanTpApi.PCANTP_CAN_DATA_PADDING_NONE;
status = UDSApi.SetValue_2013(client_handle, uds_parameter.PUDS_PARAMETER_CAN_DATA_PADDING, ref dw_buffer, sizeof(UInt32));
Console.WriteLine("Set Padding status: {0}", (int ...
by vmedvedev
Sun 28. Apr 2024, 20:53
Forum: PCAN-UDS
Topic: UDS testDiagnosticSessionControl
Replies: 5
Views: 3586

UDS testDiagnosticSessionControl

I am learning UDS and exploring UDS API. I am trying to run example testDiagnosticSessionControl from 06_client_all_request solution here is my code

cantp_handle client_handle;
uds_status status;
UInt32 dw_buffer;
uds_msgconfig config = new uds_msgconfig();

// Set the PCAN-Channel to use ...