Unable to view the data on the PCAN-View

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

Unable to view the data on the PCAN-View

Post by Pujari » Tue 10. Oct 2023, 11:08

Hello,

I have modified the "02_client_ISO15765-2_normal_addressing" python example code to exercise the multi-packet data write. When i run the code without PCAN-View, both Tx & Rx Api's gives good response "OK".

I am initialization with below change
PCAN_BITRATE_SAE_J2284_4 = create_string_buffer(b'f_clock=80000000,nom_brp=2,nom_tseg1=63,nom_tseg2=16,nom_sjw=16,data_brp=2,data_tseg1=15,data_tseg2=4,data_sjw=4')
# Initialize channel: CAN2.0 - 500Kbit/s
res = objPCANIsotp.Initialize_2016(client_handle, PCAN_BITRATE_SAE_J2284_4)
print("Initialize: ", STATUS_OK_KO(res))

PCAN-ISO-TP API Version: b'3.5.0.344'
Initialize: OK
Set STMIN = 600us: OK
Allocate tx message: OK
Add a simple mapping: OK
Add a simple mapping: OK
Initialize tx message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Initialize rx message xx: OK
CANTP_Read_2016 (indication): KO, netstatus=0b
Free rx message: OK
Initialize rx message: OK
CANTP_Read_2016 (complete): KO, netstatus=0b
Free rx message: OK
Free tx message: OK
Uninitialize: OK
Press <Enter> to close

But no data is captured on the PCAN-View.

Also with PCAN-View, if i run the "02_client_ISO15765-2_normal_addressing" python example code, the initialization doesn't go through.

PCAN-ISO-TP API Version: b'3.5.0.344'
Initialize: KO
Set STMIN = 600us: KO
Allocate tx message: OK
Add a simple mapping: KO
Add a simple mapping: KO
Initialize tx message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Write " PEAK-System - PCAN-ISO-TP Sample " message: OK
Initialize rx message xx: OK
CANTP_Read_2016 (indication): KO, netstatus=00
Free rx message: OK
Initialize rx message: OK
CANTP_Read_2016 (complete): KO, netstatus=00
Free rx message: OK
Free tx message: OK
Uninitialize: KO

Can you please guide how to view the data on the PCAN-View.

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

Re: Unable to view the data on the PCAN-View

Post by K.Wagner » Tue 10. Oct 2023, 12:44

Hello,
Pujari wrote:
Tue 10. Oct 2023, 11:08
When i run the code without PCAN-View, both Tx & Rx Api's gives good response "OK".
Please take care that PCAN-View and your applications are using exactly the same bit rate. Otherwise either:
  • PCAN-View will not be able to read anything (for example, PCAN-View receiving on channel 2 and you are sending from channel 1)
  • Or, your application will not be able to connect to that channel (for example, you have already a PCAN-View attached to channel 1, and you want to connect your app to channel 1 as well)
Best regards,
Keneth

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

Re: Unable to view the data on the PCAN-View

Post by Pujari » Tue 10. Oct 2023, 12:57

Hello,

Thanks for the reply.

To view the data on the PCAN-View, I need to use another PCAN-USB. Is my understanding correct.
Please confirm.

Regards
Anand Pujari

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

Re: Unable to view the data on the PCAN-View

Post by K.Wagner » Tue 10. Oct 2023, 14:57

Dear,

please understand that:
  • You need at least two CAN nodes in a network in order to be able to see communication (basic CAN specifications)
  • You need to use exact the same bit rate configuration for all participants
  • You can attach a PCAN-View to a CAN node that is being used by one PCAN-ISO-TP application
  • You can attach a PCAN-ISO-TP application to a CAN node that is being used by a PCANV-View
  • Each PCAN channel (physical channel of a PCAN device) can be connected only by one PCAN-ISO-TP application at a time, and one or more PCAN-Views (or other PCAN applications, like PCAN-Explorer)
Pujari wrote:
Tue 10. Oct 2023, 12:57
To view the data on the PCAN-View, I need to use another PCAN-USB. Is my understanding correct.
You need to use the PCAN-View as a second node of your "environment" or connect it to one of the nodes (at least two) that you need to have to be available to see communication.
Best regards,
Keneth

Post Reply