Search found 7 matches

by Benoit_V
Thu 20. Mar 2025, 09:35
Forum: Software
Topic: How change the default UDS Standard adress
Replies: 1
Views: 2401

How change the default UDS Standard adress

Hello,

I have a trouble with the implementation of the UDS library.
I want change the default CAN ID for the standard: 0x7E0 to another value like: 0x420 for example.

I try this:

uint16_t adress_ecu = (uint16_t)(0x420);
address_diagtool = (uint16_t)(0x421);

// Initialize a physical ...
by Benoit_V
Fri 28. Feb 2025, 09:10
Forum: Software
Topic: Trouble with the integration of the library PCAN-UDS
Replies: 1
Views: 10571

Trouble with the integration of the library PCAN-UDS

Hello,

I have some trouble with the integration of the library PCAN-UDS.

In my use case, I need to commmunicate with my system with specific CAN Frame and I need UDS CAN too in the same time.

I use Qt5 for my application.
Sometimes, a multiframe UDS is not transmitted entirely.

For example, the ...
by Benoit_V
Mon 9. Dec 2024, 09:32
Forum: PCAN-UDS
Topic: UDS: implementation custom function working 4959 time but not more
Replies: 8
Views: 6089

Re: UDS: implementation custom function working 4959 time but not more

Hello,

After some tests, we have found the problem.

The problem was a recursive function to call the UDS Function.
No problem inside the library.

Thank you for help!!
by Benoit_V
Wed 27. Nov 2024, 16:11
Forum: PCAN-UDS
Topic: UDS: implementation custom function working 4959 time but not more
Replies: 8
Views: 6089

Re: UDS: implementation custom function working 4959 time but not more

Hello,

I use your function "uds_status uds::SvcECUReset_2013" and it's work.

I have adaptated to my function.
"
*out_msg_request->links.service_id = PUDS_SI_ECUReset;
out_msg_request->links.param[0] = reset_type;
"
But unfortunately, it's doesn't work.

Do you have an example with a function ...
by Benoit_V
Mon 25. Nov 2024, 13:04
Forum: PCAN-UDS
Topic: UDS: implementation custom function working 4959 time but not more
Replies: 8
Views: 6089

Re: UDS: implementation custom function working 4959 time but not more

Hello,

I had use your code. Unfortunately, the problem is still there.
I had discuss with my colleagues and after some tests. We thinking a trouble inside the function UDS_MsgFree_2013() but we are not sure.

To solve our problem, do you have an example for implementation or a precise description ...
by Benoit_V
Thu 14. Nov 2024, 17:49
Forum: PCAN-UDS
Topic: UDS: implementation custom function working 4959 time but not more
Replies: 8
Views: 6089

Re: UDS: implementation custom function working 4959 time but not more

Hello,

I have adapted my code to use the UDS_WaitForService_2013.
I have saw the example inside the client all request.

Unfortunately, my code doesn't work.
With the uds_status, I have an error (PCANTP_ERRSTATUS_MAPPING_INVALID = 0x0EU) and I don't understood why.

Do you have an idea?

I use the ...
by Benoit_V
Thu 7. Nov 2024, 15:40
Forum: PCAN-UDS
Topic: UDS: implementation custom function working 4959 time but not more
Replies: 8
Views: 6089

UDS: implementation custom function working 4959 time but not more

Hello,

I try to implement a custom service to transfert a custom data via UDS protocol.

My data takes 15 CAN frames to transfert (in consequence multiframe)

All works good during almost 4959 exchanges but in the number 4960 the software crashes.
And I don't understand why? What's wrong with my ...