Page 1 of 1

Firmware update via CAN using OpenBLT

Posted: Fri Nov 05, 2021 11:52 pm
by AndreyB
Dron has just implemented OpenBLT for some boards including MRE F4 and both Proteus Fx builds.

A lot to be figured out but we have something now!

https://github.com/rusefi/rusefi/pull/3430 is the PR
https://github.com/rusefi/rusefi/wiki/Firmware-update-via-CAN are the limited notes.

A million of open questions as of today:
Would random "USB transfer CAN isolation canable open source CANDO interface card debug CAN box bus analyzer" from aliexpress work?
Are there existing JLCPBC fab files for https://canable.io/ or would anyone be interested to contribute?

While stm32f042 are not very available those are somewhat available. Also worst case we can swap stm32f042 for pretty available stm32f407 :)

The big picture is having a more water proof rusEFI ECU eventually. Considering that USB is not ideal at the moment we have code to update firmware via CAN and tune via Ethernet. Maybe one day we will find a way to tune via CAN but that's kind of a separate topic more relevant for https://github.com/rusefi/rusefi/issues/3361 :)

Re: Firmware update via CAN using OpenBLT

Posted: Sun Nov 07, 2021 10:37 am
by puff
pretty available on jlcpcb is GD32F103C8T6 or GD32C103TBU6
curious, what's inside those canable firmwares? from my understanding, this should be something like a serial to can bridge? or it is trickier, and PC software uses some proprietary usb-based protocol?

Re: Firmware update via CAN using OpenBLT

Posted: Mon Nov 08, 2021 7:59 pm
by Dron_Gus
Cando adapter https://aliexpress.ru/item/4001164534407.html from Ali tested and works just fine under Linux.

Code: Select all

[47948.958899] usb 2-1.8.3.2: new full-speed USB device number 21 using ehci-pci
[47949.070248] usb 2-1.8.3.2: New USB device found, idVendor=1d50, idProduct=606f
[47949.070253] usb 2-1.8.3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[47949.070256] usb 2-1.8.3.2: Product: Cando
[47949.070258] usb 2-1.8.3.2: Manufacturer: ABF
[47949.070260] usb 2-1.8.3.2: SerialNumber: 758A9B970C52

Re: Firmware update via CAN using OpenBLT

Posted: Mon Nov 08, 2021 8:44 pm
by puff
is it open source (cando thingy I mean)? I wish there were source codes - just curious how difficult would it be to make a similar one, say, out of a blue pill + canbus shield.

Re: Firmware update via CAN using OpenBLT

Posted: Wed Nov 10, 2021 9:27 am
by Dron_Gus
puff wrote:
Mon Nov 08, 2021 8:44 pm
is it open source (cando thingy I mean)? I wish there were source codes - just curious how difficult would it be to make a similar one, say, out of a blue pill + canbus shield.
You can use open hw compatible with this FW https://github.com/moonglow/pcan_cantact .

Re: Firmware update via CAN using OpenBLT

Posted: Wed Nov 10, 2021 1:08 pm
by AndreyB
Dron_Gus wrote:
Wed Nov 10, 2021 9:27 am
You can use open hw compatible with this FW https://github.com/moonglow/pcan_cantact .
https://github.com/moonglow/pcan_cantact/issues/5

Re: Firmware update via CAN using OpenBLT

Posted: Wed Nov 10, 2021 3:01 pm
by puff
Thanks!
I looked through the code, so, from my understanding, it's not just a plain usb-serial interface inside, but rather a fully-featured usb device.

As for blue pill - I've heard of successful implementation of usb AND can at the same time, but first, that's way tricky, and the resources are limited.

Re: Firmware update via CAN using OpenBLT

Posted: Sun Jan 16, 2022 4:46 pm
by AndreyB
OpenBLT has commercial add-ons https://www.feaser.com/en/addons.php and online quote generation tool
image.png
image.png (118.83 KiB) Viewed 6922 times

Re: Firmware update via CAN using OpenBLT

Posted: Sun Jan 16, 2022 5:36 pm
by Dron_Gus
Which option does RusEFI need?

Re: Firmware update via CAN using OpenBLT

Posted: Sun Jan 16, 2022 5:38 pm
by AndreyB
Dron_Gus wrote:
Sun Jan 16, 2022 5:36 pm
Which option does RusEFI need?
Myself I am interested only in update via CAN.

Mark might be curious about firmware encryption in addition to that update via CAN.

Re: Firmware update via CAN using OpenBLT

Posted: Sat Feb 12, 2022 5:03 pm
by AndreyB
Made some progress but does not work with my Proteus so far

https://github.com/rusefi/rusefi/commit/dca64a6b4e3de51b3fb1887088bc55b58db125e4

Re: Firmware update via CAN using OpenBLT

Posted: Sun Feb 20, 2022 10:45 am
by Dron_Gus
CANable Z PRO was tested with MRE. Still under Linux only.
Windows testers are welcome.
See https://github.com/rusefi/rusefi/issues/3483