IsoTp ISO 15765-2 in rusEFI

It's all about the code!
Post Reply
User avatar
AndreyB
Site Admin
Posts: 12800
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

IsoTp ISO 15765-2 in rusEFI

Post by AndreyB »

Central thread for IsoTp ISO 15765-2 in rusEFI

On the one hand we have 15765-2 implementation in firmware and ELM327/15765-2 console TS proxy, on the other hand open question if anything with real RS232 on the path would ever work specifically with TS protocol? does TS protocol NOT help if RS232 is on the path?

See https://rusefi.com/forum/viewtopic.php?f=13&t=2209
See https://github.com/rusefi/rusefi/issues/3655#issuecomment-986166603
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 12800
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: IsoTp ISO 15765-2 in rusEFI

Post by AndreyB »

Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 12800
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: IsoTp ISO 15765-2 in rusEFI

Post by AndreyB »

Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
Dron_Gus
contributor
contributor
Posts: 327
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: IsoTp ISO 15765-2 in rusEFI

Post by Dron_Gus »

AndreyB wrote:
Sun Dec 05, 2021 8:56 pm
One day maybe https://en.wikipedia.org/wiki/XCP_(protocol)
OpenBLT uses XCP over CAN. And may be over some other interfaces too.
User avatar
AndreyB
Site Admin
Posts: 12800
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: IsoTp ISO 15765-2 in rusEFI

Post by AndreyB »

Just ordered Korlan https://shop.8devices.com/index.php?route=product/product&path=67&product_id=89 this one looks amazing! Also cool that those are designed in Lithuania.

Will totally try to run https://github.com/moonglow/pcan_cantact on it :)
image.png
image.png (142.32 KiB) Viewed 3085 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 12800
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: IsoTp ISO 15765-2 in rusEFI

Post by AndreyB »

Kirby says remove both labels. two screws back, two screws front
image.png
image.png (1.22 MiB) Viewed 3077 times
image.png
image.png (1.09 MiB) Viewed 3077 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 12800
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: IsoTp ISO 15765-2 in rusEFI

Post by AndreyB »

Another option maybe https://www.aliexpress.com/item/1005003493448473.html Vag V2 VAG B03-ST V20.41

Someone would have to design a case for it :)
image.png
image.png (222.96 KiB) Viewed 3060 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 12800
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: IsoTp ISO 15765-2 in rusEFI

Post by AndreyB »

@andreika has just fixed one last bug and ISO-TP PCAN connector works! We connect TS to ISO-TP via a TCP bridge in rusEFI console binary. At the moment only tested on Windows, might need additional packaging magic should eventually work under Linux.
image.png
image.png (335.36 KiB) Viewed 3002 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
Dron_Gus
contributor
contributor
Posts: 327
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: IsoTp ISO 15765-2 in rusEFI

Post by Dron_Gus »

Details?
What about update rate?
User avatar
AndreyB
Site Admin
Posts: 12800
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: IsoTp ISO 15765-2 in rusEFI

Post by AndreyB »

Got my Korlan USB2CAN and so far I am unable to switch it into DFU mode

On Windows 11 I have it displayed nicely in Device Manager
image.png
image.png (4.7 KiB) Viewed 2867 times
I've downloaded windows-USB2CAN-fw-tools but USB2CAN_DFU.exe tool does nothing silently on my Windows 11.
image.png
image.png (6.28 KiB) Viewed 2867 times
They also mention a linux way in documentation https://www.8devices.com/media/products/usb2can_korlan/downloads/Korlan_USB2CAN_User_Guide.pdf
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 12800
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: IsoTp ISO 15765-2 in rusEFI

Post by AndreyB »

Update:

downloaded _another_ package and it has _another_ version of usb2can_dfu.exe which works - it does switch device into DFU mode.

Code: Select all

C:\Users\Dell2019\Downloads\windows-USB2CAN-fw-tools>dfu-util.exe -a 0 -s 0x8008000:leave -D usb2can_v23.bin                                                                                                       
dfu-util 0.8                                                                                                                                                                                                                                                                                                                                                                                                                          
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.                                                                                                                                                 
Copyright 2010-2014 Tormod Volden and Stefan Schmidt                                                                                                                                                               
This program is Free Software and has ABSOLUTELY NO WARRANTY                                                                                                                                                       
Please report bugs to dfu-util@lists.gnumonks.org                                                                                                                                                                                                                                                                                                                                                                                     
Invalid DFU suffix signature                                                                                                                                                                                       
A valid DFU suffix will be required in a future dfu-util release!!!                                                                                                                                                
Opening DFU capable USB device...                                                                                                                                                                                  
ID 257f:0004                                                                                                                                                                                                       
Run-time device DFU version 011a                                                                                                                                                                                   
Claiming USB DFU Interface...                                                                                                                                                                                      
Setting Alternate Setting #0 ...                                                                                                                                                                                   
Determining device status: state = dfuIDLE, status = 0                                                                                                                                                             
dfuIDLE, continuing                                                                                                                                                                                                
DFU mode device DFU version 011a                                                                                                                                                                                   
Device returned transfer size 1024                                                                                                                                                                                 
DfuSe interface name: "Internal Flash  "                                                                                                                                                                           
Downloading to address = 0x08008000, size = 20064                                                                                                                                                                  
Download        [=========================] 100%        20064 bytes                                                                                                                                                
Download done.                                                                                                                                                                                                     
File downloaded successfully                                                                                                                                                                                       
Error during download get_status
Next step
objcopy --input-target=ihex --output-target=binary pcan_canable_hw.hex code00.bin
Now moment of truth...
image.png
image.png (42.57 KiB) Viewed 2861 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 12800
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: IsoTp ISO 15765-2 in rusEFI

Post by AndreyB »

Found boot0 pad. Device is read out protected so I have voided warranty. This is now a PCAN device thanks to https://github.com/moonglow/pcan_cantact/releases/download/v1.5/pcan_canable_hw.hex

Middle LED looks to be PD2, further away LED looks to be PC12 - one day we might make a custom version of https://github.com/moonglow/pcan_cantact/blob/master/Src/pcan_led.c
Attachments
IMG_20211218_150946.jpg
IMG_20211218_150946.jpg (323.1 KiB) Viewed 2855 times
Korlan-back-side.png
Korlan-back-side.png (1.16 MiB) Viewed 2855 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 12800
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: IsoTp ISO 15765-2 in rusEFI

Post by AndreyB »

Just fixed a bug and got rusEFI console to work via PCAN.
image.png
image.png (27.81 KiB) Viewed 2839 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
JRD McLAREN
contributor
contributor
Posts: 374
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: IsoTp ISO 15765-2 in rusEFI

Post by JRD McLAREN »

Nice ... ;)
.. some Proteus and microRusEFI for sale in Europe ..
kjn260
Posts: 2
Joined: Sun Nov 07, 2021 10:59 pm

Re: IsoTp ISO 15765-2 in rusEFI

Post by kjn260 »

AndreyB wrote:
Sat Dec 18, 2021 8:13 pm
Found boot0 pad. Device is read out protected so I have voided warranty. This is now a PCAN device thanks to https://github.com/moonglow/pcan_cantact/releases/download/v1.5/pcan_canable_hw.hex

Middle LED looks to be PD2, further away LED looks to be PC12 - one day we might make a custom version of https://github.com/moonglow/pcan_cantact/blob/master/Src/pcan_led.c
Hey Andrey. I will try this too on my spare USB2CAN adapter. Is it just a matter of pulling Boot0 to ground and then running the DFU unit will the PCAN_CANABLE_HW?
User avatar
AndreyB
Site Admin
Posts: 12800
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: IsoTp ISO 15765-2 in rusEFI

Post by AndreyB »

kjn260 wrote:
Fri Feb 18, 2022 11:25 pm
Hey Andrey. I will try this too on my spare USB2CAN adapter. Is it just a matter of pulling Boot0 to ground and then running the DFU unit will the PCAN_CANABLE_HW?
really depends on what kind of USB2CAN you have with what MCU
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
kjn260
Posts: 2
Joined: Sun Nov 07, 2021 10:59 pm

Re: IsoTp ISO 15765-2 in rusEFI

Post by kjn260 »

AndreyB wrote:
Sat Feb 19, 2022 12:56 am
kjn260 wrote:
Fri Feb 18, 2022 11:25 pm
Hey Andrey. I will try this too on my spare USB2CAN adapter. Is it just a matter of pulling Boot0 to ground and then running the DFU unit will the PCAN_CANABLE_HW?
really depends on what kind of USB2CAN you have with what MCU
Same one that I took photos of above.
https://rusefi.com/forum/viewtopic.php?p=43523#p43523
Post Reply