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?
@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 (335.36 KiB) Viewed 35217 times
Re: IsoTp ISO 15765-2 in rusEFI
Posted: Thu Dec 09, 2021 9:43 am
by Dron_Gus
Details?
What about update rate?
Re: IsoTp ISO 15765-2 in rusEFI
Posted: Sat Dec 18, 2021 6:40 pm
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 (4.7 KiB) Viewed 35082 times
I've downloaded windows-USB2CAN-fw-tools but USB2CAN_DFU.exe tool does nothing silently on my Windows 11.
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
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?
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
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
it's somewhere inside PCAN native stuff, open question if their PCAN-Basic has enough source code for us to troubleshoot this further.
I would suggest addressing the unexpected CAN traffic first and testing once iso-tp is the only activity on the bus. If iso-tp would work by itself we would move to adding understandable CAN traffic in addition to iso-tp next ut as is it's just too much weird at the same time.
it's somewhere inside PCAN native stuff, open question if their PCAN-Basic has enough source code for us to troubleshoot this further.
I would suggest addressing the unexpected CAN traffic firts and testing once iso-tp is the only activity on the bus. If iso-tp would work by itself we would move to adding understandable CAN traffic in addition to iso-tp next ut as is it's just too much weird at the same time.
understood. I will check out these strange frames first and report back!
Re: IsoTp ISO 15765-2 in rusEFI
Posted: Mon Jul 25, 2022 6:07 am
by kjn260
The strange CAN frames are fixed as of PR#4376
Happy to report that TS Via CAN (ISOTp 157650-2) works.
There is alot of debug in the console window due to filtering of verbose and the wbo2 messages.
I think this makes the CAN Tx/Rx a quite laggy, which in turn makes TS laggy.
However I was able to see the gauges update and change settings successfully via TS.
Attached is the debug log.
Please let me know if you need anymore testing.
NB: 0xEF50000 is the Wbo2 voltage and engine running frame at approximately 20Hz, 0xEF51234 is a test lua frame at approx 1Hz.
Re: IsoTp ISO 15765-2 in rusEFI
Posted: Mon Jul 25, 2022 9:36 am
by AndreyB
I am not sure how much console debug (or connector debug) would affect throughput, maybe it in fact plays a negative role.
Would you be interested to look further into it? try TS without console running? Try with custom firmware and/or custom java connector with debug statements removed from the source code?
I am not sure how much console debug (or connector debug) would affect throughput, maybe it in fact plays a negative role.
Would you be interested to look further into it? try TS without console running? Try with custom firmware and/or custom java connector with debug statements removed from the source code?
Happy to.
TS via usb/serial is at this point much qucker.
I will have a look at the java connector/bridge and compilation steps to see if I can try and remove the debug print and see if there is any improvement.