When checking ECU output data, both rx/tx are caught

High-speed USB 2.0 to CAN/LIN Interface
Post Reply
ddw0127
Posts: 4
Joined: Wed 11. May 2022, 03:00

When checking ECU output data, both rx/tx are caught

Post by ddw0127 » Thu 14. Jul 2022, 05:21

Hello, I'm a beginner of PCAN-USB Pro.

I have connected PCAN USB pro as follows.

     < ECU >
      |
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
|  PCAN-USB Pro   |
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
   |      |
   |      |
 Program1   Program2
  (ch1)     (ch2)


- Program1 = Send data to ECU
- Program2 = Check ECU output data
** Both Program1 and Program2 run on the same PC.


I want to send the data of Program1 to the ECU and check the output ECU data in Program2.

However, when I try to check the output data in Program2, the output data of ECU and the transmission data of Program1 are displayed together.

In this case, is there any physical problem that may occur?

Or, I am currently checking data through RxEvent, is this function catching all data on the bus?

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: When checking ECU output data, both rx/tx are caught

Post by PEAK-Support » Thu 14. Jul 2022, 15:04

Why use 2 CAN Channels on one CAN Network ? Simply use one CAN Channel...
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

ddw0127
Posts: 4
Joined: Wed 11. May 2022, 03:00

Re: When checking ECU output data, both rx/tx are caught

Post by ddw0127 » Fri 11. Aug 2023, 04:36

Hi, I saw your answer, but I have another question, so leave a reply.

For example, if I initialize channel 1 in application A and then initialize channel 1 again in application B, it doesn't work.
Can I use the same channel in different applications? What can I do if I can use it? :D

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: When checking ECU output data, both rx/tx are caught

Post by PEAK-Support » Fri 11. Aug 2023, 08:06

Only one Application could use a physical CAN Channel when using the PCAN-Basic API. See Documenation, first section.
If you need to access from 2 or more independent applications to the same CAN Channel, you need to use the commercial API - PCAN-Developer.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply