Search found 112 matches

by F.Vergnaud
Tue 23. Jun 2020, 14:02
Forum: PCAN-UDS
Topic: UDS Server Handling of CAN TP problem
Replies: 3
Views: 53

Re: UDS Server Handling of CAN TP problem

Apart from increasing the baudrate, you can change the following parameters on the server side (in ISO-TP, it is the receiver that defines the communication parameters): - PCANTP_PARAM_SEPARATION_TIME: 0x00, set it to 0 to reduce the minimum time to wait between each fragmented frames. - PCANTP_PARA...
by F.Vergnaud
Tue 23. Jun 2020, 12:33
Forum: PCAN-UDS
Topic: UDS Server Handling of CAN TP problem
Replies: 3
Views: 53

Re: UDS Server Handling of CAN TP problem

Hello Shail, I do not fully understand your question regarding delays.. But here is how ISO-TP communication is designed: - Client begins a segmented communication by sending a "First Frame". - Server receives the First Frame, the API notifies you that a message is pending (you have the information ...
by F.Vergnaud
Thu 18. Jun 2020, 15:45
Forum: PCAN-UDS
Topic: PCAN UDS Address Mapping
Replies: 2
Views: 66

Re: PCAN UDS Address Mapping

Hello Shail, You're mixing a lot of things, before further development you should have a look at the documentation "UDS and ISO-TP Network Addressing Information" §4.3 page 339: It explains the default mapping configuration when you initialize a UDS channel. Please also check §4.3.2 page 342, to und...
by F.Vergnaud
Wed 17. Jun 2020, 15:08
Forum: PCAN-UDS
Topic: PCUClient and PCUServer Communication Problem
Replies: 3
Views: 64

Re: PCUClient and PCUServer Communication Problem

You need to: 1. plug your 2 PCAN devices to your PC, 2. connect a PCAN-Term (120ohm termination adapter) to the first PCAN device, 3. connect a PCAN-Cable 1 to it then 4. add a PCAN-Term to the end of the cable 5. finally connect it to the other PCAN-device. Note that you can use a PCAN-Cable 2 that...
by F.Vergnaud
Tue 16. Jun 2020, 09:28
Forum: PCAN-UDS
Topic: PCUClient and PCUServer Communication Problem
Replies: 3
Views: 64

Re: PCUClient and PCUServer Communication Problem

Hello, (1) PCUServer needs to be launched first as it listens to client requests. (2) (3) Two applications cannot use the same channel, see PCAN-UDS documentation, function UDS_Initialize page 259 : The Initialization process will fail if an application tries to initialize a PUDS‐Channel that has al...
by F.Vergnaud
Tue 19. May 2020, 11:13
Forum: PCAN-UDS
Topic: UDS RoutineControl for Erase & UDS Service for Flash
Replies: 1
Views: 93

Re: UDS RoutineControl for Erase & UDS Service for Flash

Hello Shail, (1) Please refer to your ECU specifications, it is usually a call to UDS service RoutineControl (with a start command and the standardized "EraseMemory" routineId), but the parameters (a buffer of byte) are specific to your ECU: UDS_SvcRoutineControl(CanHandle, msgReq, PUDS_SVC_PARAM_RC...
by F.Vergnaud
Tue 24. Mar 2020, 10:28
Forum: PCAN-UDS
Topic: Root cause PUDS_ERROR_CAN_ERROR
Replies: 3
Views: 191

Re: Root cause PUDS_ERROR_CAN_ERROR

Hello, UDS_WaitForServiceFunctional and UDS_WaitForService functions return PUDS_ERROR_CAN_ERROR when a network error occured. Originally the functions returned Ok, but users tend to forget to check the value of the member RESULT of their retrieved UDS message. As a result, when this error occur ple...
by F.Vergnaud
Wed 26. Feb 2020, 12:01
Forum: PCAN-UDS
Topic: PCUServer: UDS_Initialize() return -2147476480
Replies: 1
Views: 124

Re: PCUServer: UDS_Initialize() return -2147476480

Hello, Status should be analyzed as hex for ease: - (uint)-2147476480 is 0x80001c00, - Flag 0x80000000 means this is a PCAN-Basic API status, - 0x01C00U is PCAN_ERROR_ILLCLIENT. PCUServer initializes a 2nd USB PEAK CAN device: PUDS_USBBUS2 (line 312), whereas PCUClient initializes the 1st USB PEAK C...
by F.Vergnaud
Wed 19. Feb 2020, 09:31
Forum: PCAN-UDS
Topic: DEBUG_CAN seems not to work
Replies: 3
Views: 178

Re: DEBUG_CAN seems not to work

Dear Maxence,

The debug CAN information has indeed changed and the documentation is deprecated, thanks for pointing that out.
CAN information will be logged in the file "PCANBasic.log" in the working directory of the application.
by F.Vergnaud
Fri 14. Feb 2020, 12:04
Forum: PCAN-UDS
Topic: Usage of TesterPresent
Replies: 2
Views: 177

Re: Usage of TesterPresent

Hello Maxence, 1. The automatic TesterPresent mechanism was only designed to keep alive non-default diagnostic session without interaction of the user. It is not possible to change the parameter of the service. 2. You want to check if an ECU is alive which is not the goal of the automatic TesterPres...