Skip to content

P2 timer issue on client.transfer_data(block_number, data #229

Closed
@stanislavZemek

Description

@stanislavZemek

Hello,
at first, very nice library which works with socketcan. Good job!
I maybe found a problem with this library.
I am sending 2048 bytes of data to my developed ECU via UDS protocol from tester program which contains your python library.
After receiving first block of data from PEAK cable my ECU sent confirm frame back to tester in properly time, but the udsoncan library either wrote warning:
2024-04-04 13:31:03 [ERROR] UdsClient: [TimeoutException] : Did not receive response in time. P2 timeout time has expired (timeout=0.200 sec)

Sniffed communication:
(1712230262.871388) can0 760 [8] 18 02 36 01 00 00 01 20
(1712230262.873197) can0 768 [3] 30 00 00
(1712230262.873296) can0 760 [8] 21 A1 06 01 08 45 06 01
(1712230262.873443) can0 760 [8] 22 08 4B 06 01 08 51 06
(1712230262.873588) can0 760 [8] 23 01 08 57 06 01 08 5D
(1712230262.873726) can0 760 [8] 24 06 01 08 00 00 00 00
(1712230262.873864) can0 760 [8] 25 00 00 00 00 00 00 00
(1712230262.874002) can0 760 [8] 26 00 00 00 00 00 E1 40
(1712230262.874158) can0 760 [8] 27 01 08 63 06 01 08 00
(1712230262.874296) can0 760 [8] 28 00 00 00 C1 42 01 08
****** next messages ********
(1712230262.934464) can0 760 [8] 2E 60 00 BF 14 37 BD 46
(1712230262.934738) can0 760 [8] 2F 80 BC 70 47 00 BF 00
(1712230262.934872) can0 760 [8] 20 ED 00 E0 80 B4 00 AF
(1712230262.935191) can0 760 [8] 21 04 4B DB 68 1B 0A 03
(1712230262.935418) can0 760 [8] 22 F0 07 03 18 46 BD 46
(1712230262.935647) can0 760 [8] 23 80 BC 70 47 00 BF 00
(1712230262.935874) can0 760 [8] 24 ED 00 E0 80 B4 83 B0
(1712230263.103335) can0 768 [3] 02 76 01

As you can see last row contain response from my unit and the response time from last message is is lower than P2 time.
Do you have any idea where should be a problem?
Can be that a problem with buffering inside PEAK cable?
Thank you very much for your response in advance and wish you good luck with projects like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions