Search found 14 matches

by Kevin1
Thu 10. Oct 2024, 17:22
Forum: PCAN-UDS
Topic: UDS Tester ID below 0x7E0 prblem
Replies: 5
Views: 4027

Re: UDS Tester ID below 0x7E0 prblem

Thanks for your feedback.

I am using Python and struggling to remove the mapping for CAN IDand set PUDS_PARAMETER_SEPARATION_TIME with python... even I cant' find how to set PUDS_PARAMETER_SEPARATION_TIME ... can you elaborate your comment a bit more?
by Kevin1
Thu 10. Oct 2024, 11:00
Forum: PCAN-UDS
Topic: UDS Tester ID below 0x7E0 prblem
Replies: 5
Views: 4027

Re: UDS Tester ID below 0x7E0 prblem

Hello,

I am using two sets of CAN FD ids. 7b3(Tester) / 7bb(ECU) and 7e0(Tester) / 7e8(ECU) with threading
I found if I set mapping for 7e0 as below. actual CAN sending ID is changed into 7e1. If I use ECU_3 then it goes 7e2. is there any way to avoid this situation? I guess there is something ...
by Kevin1
Sun 6. Oct 2024, 17:35
Forum: PCAN-Basic
Topic: cantools with pacn for CAN FD
Replies: 2
Views: 14943

Re: cantools with pacn for CAN FD

If I set it as below, it works for only CAN 500K not CAN FD... even if fd is set True.....

bus = can.interface.Bus(channel='PCAN_USBBUS1', interface='pcan',bitrate=500000, data_bitrate=2000000,fd=True,f_clock=80000000,nom_brp=2,nom_tseg1=63,nom_tseg2=16,nom_sjw=16,data_brp=2,data_tseg1=15,data ...
by Kevin1
Sun 6. Oct 2024, 17:26
Forum: PCAN-Basic
Topic: cantools with pacn for CAN FD
Replies: 2
Views: 14943

cantools with pacn for CAN FD

I have trying to use cantools with pcan for CAN FD

however I got a error message below and can you advise me what else should I add or correct?

"A parameter contains an invalid value"




import cantools
import can
import time


bus = can.interface.Bus(channel='PCAN_USBBUS1', interface='pcan ...
by Kevin1
Sun 6. Oct 2024, 13:50
Forum: PCAN-UDS
Topic: UDS Tester ID below 0x7E0 prblem
Replies: 5
Views: 4027

UDS Tester ID below 0x7E0 prblem

I have noticed UDS API only supports CAN ID over 0x7E0 for tester ID and 0x7e8 for ECU. I am doing some simulation, once I changed to the Tester ID 7B3 and 7BB for ECU. there is no more commination for TP(22 01 01 -> 62 01 01 FF FF FF FF FF AA AA AA BB BB BB CC...) same with 7Dx etc..

Is there any ...
by Kevin1
Thu 27. Jun 2024, 17:29
Forum: PCAN-UDS
Topic: question for SvcReadDataByIdentifier_2013
Replies: 3
Views: 3281

Re: question for SvcReadDataByIdentifier_2013

hello
thanks for your feed back. please see my code below, I can do communication with ECU as functional address mode, but I can get ECU response with WaitForService_2013... do I need to use other function to get ECU response?


import os
import sys
import copy
from time import sleep
from PCAN_UDS ...
by Kevin1
Wed 26. Jun 2024, 12:25
Forum: PCAN-UDS
Topic: question for SvcReadDataByIdentifier_2013
Replies: 3
Views: 3281

question for SvcReadDataByIdentifier_2013

Hello,

I am using SvcReadDataByIdentifier_2013to request 0x22 service to ECU like 22 01 01.
however I am not sure how can I send 0x21 service to ECU? like 21 01 01?

it looks like SvcReadDataByIdentifier_2013send always 0x22 service only..
by Kevin1
Wed 26. Jun 2024, 11:58
Forum: PCAN-OBD-2
Topic: Python sample for OBD2
Replies: 1
Views: 10126

Python sample for OBD2

Hello,

Do you have python code samples for OBD2?
by Kevin1
Tue 25. Jun 2024, 18:07
Forum: PCAN-ISO TP
Topic: ISO-TP_FORMAT_EXTENDED is not working
Replies: 10
Views: 6811

Re: ISO-TP_FORMAT_EXTENDED is not working

Thanks for your support,
Now it works very well.

Few questions for your modification.
I can't understand why you put source_mapping.can_tx_dlc = 0 and config_physical.can_id = -1
I presume tx_dlc needs to be 8 and config_physical.can_id=0x6f1 ?

and in Normal addressing, why do I need to ...
by Kevin1
Mon 17. Jun 2024, 16:10
Forum: PCAN-ISO TP
Topic: ISO-TP_FORMAT_EXTENDED is not working
Replies: 10
Views: 6811

Re: ISO-TP_FORMAT_EXTENDED is not working

Hello,

I am totally confused with UDS and ISOTP API.... those are completely complex stuff... would it possible to provide me a very very simple code for ISOTP_FORMAT_EXTENDED communication ? even I don't know if I need to use UDS or ISOTP API.... more confusing is that not sure if I need to use ...