CAN message pause during send UDS message

A free API for the communication with control devices according to UDS (ISO 14229-1)
Locked
mhkong77
Posts: 3
Joined: Mon 29. Jun 2020, 07:41

CAN message pause during send UDS message

Post by mhkong77 » Tue 30. Jun 2020, 03:43

Hello.

I'm using 2 USB PCAN (It will be replaced 2ch PCI in the real system) to develop. One (let's call it ch1) is using PCAN basic to emulate some message (periodically sending) and another one (call it ch2) is using PCAN UDS.
During sending messages through ch1, if send a UDS message then emulation (ch1) message paused until receiving UDS message or time-out.
I'm tried to use one USB (viewtopic.php?f=182&t=4159) but the phenomenon is the same. In addition, in the case of using one USB, emulation messages are received like receive messages (reception event occurred).

I'm looking forward to your answers :)

Best regards,
MH

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

Re: CAN message pause during send UDS message

Post by K.Wagner » Tue 30. Jun 2020, 11:52

Hello,

Not sure to understand your problem. As far as I understand, you have two PCAN devices, one initialized with PCAN-Basic nad another initialized with UDS. They are working in the same CAN network, at the same time, running a kind of UDS simulation between both channels, right?

You also say that the PCAN-Basic channel is pausing whatever you are transmitting until it doesn't get an UDS response (or timeout) from the UDS channel? Well, I don't know your simulator app/code, but this looks OK for me. UDS is a service oriented protocol (request/response procedure), so if your simulation code acts like a UDS node, then it is normal that it waits for confirmation or stimulation before continuing sending, like a ping-pong.
Best regards,
Keneth

mhkong77
Posts: 3
Joined: Mon 29. Jun 2020, 07:41

Re: CAN message pause during send UDS message

Post by mhkong77 » Wed 1. Jul 2020, 03:43

Hello.

Thanks for your reply.

"running a kind of UDS simulation between both channels" is a misunderstanding. It's not that communication between both channels.

In more detail, I am developing ECU test equipment. PCAN-Basic channel sends periodic messages to make ECU working conditions, for example, CAN message from another ECU, sensors, etc. And UDS channel sends UDS message for diagnostic. My question is why message sending of PCAN-basic channel pause during UDS communication. (PCAN-Basic channel is not UDS simulator.)

Best regards,
MH

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

Re: CAN message pause during send UDS message

Post by K.Wagner » Wed 1. Jul 2020, 08:22

Hello,

Are you connecting the two CAN channels from within the same project, or do you have two separate applications using each one-API/one-channel connection?

The situation you describe looks like a bottleneck or synchronization problem. This kind of issue regarding the use of PCAN-Basic and UDS together is not known. Both APIs are thread-safe and can be used together (several customer do this for diagnosys and development).
Best regards,
Keneth

mhkong77
Posts: 3
Joined: Mon 29. Jun 2020, 07:41

Re: CAN message pause during send UDS message

Post by mhkong77 » Thu 2. Jul 2020, 04:29

Hello,

I figured out the cause of the pausing. That is multimedia timer event-based PCAN-Basic message processing. Thanks.

Best regards,
MH

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

Re: CAN message pause during send UDS message

Post by K.Wagner » Thu 2. Jul 2020, 08:33

Hello,

Thanks for the feedback. Closed
Best regards,
Keneth

Locked