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.
Unable to view the data on the PCAN-View
Re: Unable to view the data on the PCAN-View
Hello,
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
Keneth
Re: Unable to view the data on the PCAN-View
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
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
Re: Unable to view the data on the PCAN-View
Dear,
please understand that:
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)
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
Keneth