Closed pompushko closed 1 year ago
Do you have a raw log? What's the size of the transferred binary? what's your bitrate?
1000bps is very very low.
Sure!
can2 18DA20F1 [8] 10 0B 34 03 44 A0 01 C0
can2 18DAF120 [3] 30 00 00
can2 18DA20F1 [6] 21 00 00 04 40 00
can2 18DAF120 [4] 03 7F 34 78
can2 18DAF120 [5] 04 74 20 0F E2
can2 18DA20F1 [8] 10 82 36 01 DF 3F FE 5F
can2 18DAF120 [3] 30 00 00
can2 18DA20F1 [8] 21 FF FF FF 55 FF 5F C3
can2 18DA20F1 [8] 22 00 6F 34 FE 7F 4F 35
can2 18DA20F1 [8] 23 FE 7F 0F 37 FE 7F FE
can2 18DA20F1 [8] 24 FF FF FF 1F 87 FC 7F
can2 18DA20F1 [8] 25 62 79 49 D8 F5 FF FF
can2 18DA20F1 [8] 26 FF FF FE FF FE FF FE
can2 18DA20F1 [8] 27 FF FE FF FF F0 FF FF
can2 18DA20F1 [8] 28 FF FF FF FF FF FF FF
can2 18DA20F1 [8] 29 FC FF FF FF FF FF FF
can2 18DA20F1 [8] 2A FF FF FF FF FF FF FF
can2 18DA20F1 [8] 2B FF FF FF FF FF FF FF
can2 18DA20F1 [8] 2C FF FF FF FF FF FF FF
can2 18DA20F1 [8] 2D FF FF FF FF FF FF FF
can2 18DA20F1 [8] 2E FF FF FF FF FF FF FF
can2 18DA20F1 [8] 2F FF FF FF FF FF FF FF
can2 18DA20F1 [8] 20 FF FF FF FF FF FF FF
can2 18DA20F1 [8] 21 FF FF FF FF FF FF FF
can2 18DA20F1 [6] 22 FF FF FF FF FF
can2 18DAF120 [4] 03 7F 36 78
can2 18DAF120 [3] 02 76 01
can2 18DBFEF1 [3] 02 3E 80
can2 18DA20F1 [8] 10 82 36 02 10 54 BA FE
can2 18DAF120 [3] 30 00 00
can2 18DA20F1 [8] 21 10 54 BA FE 10 54 BA
can2 18DA20F1 [8] 22 FE 10 54 BA FE 10 54
can2 18DA20F1 [8] 23 BA FE 10 54 BA FE 10
can2 18DA20F1 [8] 24 54 BA FE 10 54 BA FE
can2 18DA20F1 [8] 25 11 54 BA FE 10 54 BA
can2 18DA20F1 [8] 26 FE 10 54 BA FE 10 54
can2 18DA20F1 [8] 27 BA FE 10 54 BA FE 10
can2 18DA20F1 [8] 28 54 BA FE 10 54 BA FE
can2 18DA20F1 [8] 29 10 54 BA FE 13 54 BA
can2 18DA20F1 [8] 2A FE 10 54 BA FE 10 54
can2 18DA20F1 [8] 2B BA FE 10 54 BA FE 10
can2 18DA20F1 [8] 2C 54 BA FE 10 54 BA FE
can2 18DA20F1 [8] 2D 10 54 BA FE 10 54 BA
can2 18DA20F1 [8] 2E FE 17 54 BA FE 10 54
can2 18DA20F1 [8] 2F BA FE 10 54 BA FE 10
can2 18DA20F1 [8] 20 54 BA FE 10 54 BA FE
can2 18DA20F1 [8] 21 10 54 BA FE 10 54 BA
can2 18DA20F1 [6] 22 FE 10 54 BA FE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
after that - silence
here is candump when I trying to transfer data. even I got problems when I load 128b chunk...
500kb\s my interface.
even I make dump of canbus when OEM factory flasher load flash.
Would be helpful if you had timestamps in your dump.
if the bus is 500kbps, why do you limit it to 1000bps with the rate limiter?
Would be helpful if you had timestamps in your dump.
if the bus is 500kbps, why do you limit it to 1000bps with the rate limiter?
Let me try add timestamps...
Which limiter should be?
Sorry I don't understand your question. You enable a rate limiter on the bus with a value of 1000bps and you say that transfer is slow.. Seems related to me.
Im sorry. Misunderstanting.
Main problem , is a timeout. I tried to use rate limiter to avoid of timeout problem. (I thought my device think about throttling)
Okay. The more detail you give, the more helpful I can be.
When I look at the logs, I see 2 transfer of data and the second one gets no response. The sender side seems correct, it's just that the device never respond, so the timeout seems legit.
Yes, You right... First data transfer is okey. Second is not. Sometimes, I can load 3-4 chunks of memory. And after loading 5 chunk - no response
For example, my code can load one or two chunk of memory to device. After that, I dont get Response like 02 76 XX ...
Ok, I think there is no issue on the ISOTP layer. Either your device crashes/reset or you are not following the correct flash procedure for your device and it expects something else than a TransferData message.
Hard to tell more
This issue has been handled through another communication channel. Issue was that device needed a delay between can messages and given stmin was 0 (no limit). Forcing a slower transmit stmin solved the issue. @pompushko : You are free to add information if you want.
This issue has been handled through another communication channel. Issue was that device needed a delay between can messages and given stmin was 0 (no limit). Forcing a slower transmit stmin solved the issue. @pompushko : You are free to add information if you want.
Finding such issue with a CAN logfile without timestamps is challenging ;-)
I have factory OBD flasher which works very well and fast.
I wrote own flasher, which works same as factory. But with issues of timeout after some time after running transfer_data:
Here is my settings, which load flash with udsoncan.client.transfer_data:
But it takes hours...
Also, if I disable rate_limit_enable - server device can stop answer after first part of transfer_data. If I enable it - I can load few parts of flash...
Could you please help me, thank you.