PCAN UDS suddenly stop write

A free API for the communication with control devices according to UDS (ISO 14229-1)
Post Reply
mdanski
Posts: 17
Joined: Tue 28. Aug 2018, 13:57

PCAN UDS suddenly stop write

Post by mdanski » Tue 17. Sep 2019, 12:15

Hello,
I am developing application using PCAN-UDS.dll in C#. The main purpose is to flash device. It works with newest PCAN USB and PRO versions, but not with old PCAN USB. What's odd we have to identical machines and it works only on one of them.

We heave installed drivers 4.1.4 for device from Part Number is IPE-002021/002022. It's only one device connected at once and correctly terminated.

In C# I have updated to latest 64 bit libraries:
PCAN-Basic 4.3.4.246
PCAN ISO-TP 2.2.1.121
PCAN-UDS 1.3.3.50

As I mentioned it doesn't work on some machines when old PCAN USB is plugged. I have PCAN Basic log from one of those machines:

Code: Select all

                          «____________________________________»
                          «           PCAN-Basic Log           » <<<<< 64-Bit API V. 4.3.2.246 >>>>>
                          «____________________________________»
Tue Sep 17 11:44:38.872 - [11008]  USER  '[ISO-TP] Rx (0x51) Ts=6342978615, IGNORING CAN MESSAGE: ID=0x001, MSGTYPE=0x80, Ext=0, SelfRx=0, Dlc=4, Data=00 00 00 04 00 00 00 00'
Tue Sep 17 11:44:38.872 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80010000)'
Tue Sep 17 11:44:38.872 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:39.739 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:40.786 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:41.832 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:42.879 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:43.925 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:44.972 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:46.018 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:47.065 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:48.111 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:49.158 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:50.204 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:51.251 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:52.297 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:52.870 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000010)'
Tue Sep 17 11:44:52.870 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:53.344 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:54.390 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:55.437 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000010)'
Tue Sep 17 11:44:55.437 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:56.483 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000002)'
Tue Sep 17 11:44:56.483 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:57.530 - [11008]  USER  '[ISO-TP] Rx (0x51) Ts=6361645149, IGNORING CAN MESSAGE: ID=0x001, MSGTYPE=0x80, Ext=0, SelfRx=0, Dlc=4, Data=00 00 00 04 00 00 00 00'
Tue Sep 17 11:44:57.530 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80010000)'
Tue Sep 17 11:44:57.530 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:58.576 - [11008]  USER  '[ISO-TP] Rx (0x51) Ts=6362691659, IGNORING CAN MESSAGE: ID=0x001, MSGTYPE=0x80, Ext=0, SelfRx=0, Dlc=4, Data=00 00 00 04 00 00 00 00'
Tue Sep 17 11:44:58.576 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80010000)'
Tue Sep 17 11:44:58.576 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:44:59.623 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:45:00.669 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:45:01.259 - [11008]  USER  '[ISO-TP] Rx (0x51) Ts=6365374222, IGNORING CAN MESSAGE: ID=0x001, MSGTYPE=0x80, Ext=0, SelfRx=0, Dlc=4, Data=00 00 00 04 00 00 00 00'
Tue Sep 17 11:45:01.259 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80010000)'
Tue Sep 17 11:45:01.259 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:45:01.692 - [11008]  USER  '[ISO-TP] Rx (0x51) Ts=6365807387, IGNORING CAN MESSAGE: ID=0x001, MSGTYPE=0x80, Ext=0, SelfRx=0, Dlc=4, Data=00 00 00 04 00 00 00 00'
Tue Sep 17 11:45:01.692 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80010000)'
Tue Sep 17 11:45:01.716 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:45:02.763 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:45:02.873 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000002)'
Tue Sep 17 11:45:03.809 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:45:04.856 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:45:05.902 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:45:06.948 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:45:06.972 - [11008]  USER  '[ISO-TP] Rx (0x51) Ts=6371087496, IGNORING CAN MESSAGE: ID=0x001, MSGTYPE=0x80, Ext=0, SelfRx=0, Dlc=4, Data=00 00 00 04 00 00 00 00'
Tue Sep 17 11:45:06.972 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80010000)'
Tue Sep 17 11:45:07.995 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:45:08.079 - [11008]  USER  '[ISO-TP] Rx (0x51) Ts=6372194645, IGNORING CAN MESSAGE: ID=0x001, MSGTYPE=0x80, Ext=0, SelfRx=0, Dlc=4, Data=00 00 00 04 00 00 00 00'
Tue Sep 17 11:45:08.079 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80010000)'
Tue Sep 17 11:45:09.042 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:45:09.137 - [11008]  USER  '[ISO-TP] Rx (0x51) Ts=6373252653, IGNORING CAN MESSAGE: ID=0x001, MSGTYPE=0x80, Ext=0, SelfRx=0, Dlc=4, Data=00 00 00 04 00 00 00 00'
Tue Sep 17 11:45:09.137 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80010000)'
Tue Sep 17 11:45:10.088 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:45:10.198 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000010)'
Tue Sep 17 11:45:11.135 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:45:12.181 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80000008)'
Tue Sep 17 11:45:12.394 - [11008]  USER  '[ISO-TP] Rx (0x51) Ts=6376509059, IGNORING CAN MESSAGE: ID=0x001, MSGTYPE=0x80, Ext=0, SelfRx=0, Dlc=4, Data=00 00 00 04 00 00 00 00'
Tue Sep 17 11:45:12.394 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80010000)'
Tue Sep 17 11:45:12.394 - [11008]  USER  '[ISO-TP] Rx (0x51) Ts=6376509161, IGNORING CAN MESSAGE: ID=0x001, MSGTYPE=0x80, Ext=0, SelfRx=0, Dlc=4, Data=00 00 00 04 00 00 00 00'
Tue Sep 17 11:45:12.394 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80010000)'
Tue Sep 17 11:45:12.877 - [11008]  USER  '[ISO-TP] Rx (0x51) Ts=6376992590, IGNORING CAN MESSAGE: ID=0x001, MSGTYPE=0x80, Ext=0, SelfRx=0, Dlc=4, Data=00 00 00 04 00 00 00 00'
Tue Sep 17 11:45:12.877 - [11008]  USER  'Failed to read CAN message on channel 0x51 (status=0x80010000)'
When I check logs saved by PCAN-View it seems like UDSApi. Write method can't finish writing all the frames when using service 0x36.

Can you provide any intel what can I do or check to resolve this error?

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: PCAN UDS suddenly stop write

Post by K.Wagner » Tue 17. Sep 2019, 13:46

Hello,

could you please check the firmware version of those "old devices"? You can do this by connecting them with PCAN-View and taking a look at the pane "PCAN-USB" (see picture).
PCAN-USB Tab in PCAN-View
PCAN-USB Tab in PCAN-View
PCAN-View.PNG (75.98 KiB) Viewed 3655 times
Note that UDS needs some properties that may not be present on an old device. If you have a firmware version 2.8, then this is the problem.
Best regards,
Keneth

mdanski
Posts: 17
Joined: Tue 28. Aug 2018, 13:57

Re: PCAN UDS suddenly stop write

Post by mdanski » Tue 17. Sep 2019, 14:13

Thank you for response.

This is what I get from PCAN-USB pane.
Attachments
pcan.png
pcan.png (70.2 KiB) Viewed 3654 times

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: PCAN UDS suddenly stop write

Post by K.Wagner » Tue 17. Sep 2019, 14:20

Hello,

yes, as you can see, your device is using the firmware version 2.8. Please contact our support per e-mail, support[at]peak-system.com, making reference to this post. Then they will help you updating the firmware.
Best regards,
Keneth

Post Reply