PCAN-ISO-TP-Unable to initialize the Receiver channel

A free API for the transfer of data packages according to ISO-TP (ISO 15765-2)
Post Reply
Pujari
Posts: 8
Joined: Sat 7. Oct 2023, 08:45

PCAN-ISO-TP-Unable to initialize the Receiver channel

Post by Pujari » Mon 9. Oct 2023, 13:40

Hi,

I am trying python PCAN-ISO-TP sample. 08_canfd_read_write. When run the canfd_read_write.py, Tx channel is getting initilized, but the Rx channel is not getting initialized. Please see the below msg. Could you guide me, what could be the issue.
C:\Project\Jira\pcan\PCAN-ISO-TP\Samples\Samples\Python\08_canfd_read_write>canfd_read_write.py

Code: Select all

PCAN-ISO-TP API Version:  b'3.5.0.344'
Initialize transmitter:  OK
Initialize receiver:  KO
Create a receive event on receiver:  KO
Allocate tx message:  OK
Allocate rx message:  OK
Write "42" message:  OK
Wait a message on receiver:  KO
Free tx message:  OK
Free rx message:  OK
Stop receive event on receiver:  KO
Close receive event:  OK
Uninitialize transmitter:  OK
Uninitialize receiver:  KO
Last edited by K.Wagner on Mon 9. Oct 2023, 14:19, edited 1 time in total.

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

Re: PCAN-ISO-TP-Unable to initialize the Receiver channel

Post by K.Wagner » Mon 9. Oct 2023, 14:22

Hello,

could you please tell us which PCAN hardware are you using?
Best regards,
Keneth

Pujari
Posts: 8
Joined: Sat 7. Oct 2023, 08:45

Re: PCAN-ISO-TP-Unable to initialize the Receiver channel

Post by Pujari » Mon 9. Oct 2023, 14:27

Hello,

Am using PCAN-USB with windows 10 PC

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

Re: PCAN-ISO-TP-Unable to initialize the Receiver channel

Post by K.Wagner » Mon 9. Oct 2023, 14:34

Hello,

do you mean, that you have only one PCAN-USB (one channel) connected to your PC? If it is so, then the problem is clear. You need one physical channel for each connection.
Best regards,
Keneth

Pujari
Posts: 8
Joined: Sat 7. Oct 2023, 08:45

Re: PCAN-ISO-TP-Unable to initialize the Receiver channel

Post by Pujari » Mon 9. Oct 2023, 14:39

Hello,

Thanks for reply.

Actually its PCAN-USB FD. So if I understand correctly, we need to connect, two PCAN-USB FD, one for Transmission and other for Reception. Please confirm.

Regards.
Anand Pujari

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

Re: PCAN-ISO-TP-Unable to initialize the Receiver channel

Post by K.Wagner » Mon 9. Oct 2023, 14:46

Hello again,
Pujari wrote:
Mon 9. Oct 2023, 14:39
Actually its PCAN-USB FD. So if I understand correctly, we need to connect, two PCAN-USB FD, one for Transmission and other for Reception. Please confirm.
Yes. As said before, you need one physical channel per connection. Our fee free APIs do not allow connecting the same physical channel more than once at the same time.

Please note that you can use different PCAN hardware, for instance, one PCAN-USB FD and one PCAN-PCIe card.
Best regards,
Keneth

Post Reply