Firmware update via CAN using OpenBLT

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

Firmware update via CAN using OpenBLT

Post 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 :)
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
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Firmware update via CAN using OpenBLT

Post 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?
User avatar
Dron_Gus
contributor
contributor
Posts: 450
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: Firmware update via CAN using OpenBLT

Post 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
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Firmware update via CAN using OpenBLT

Post 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.
User avatar
Dron_Gus
contributor
contributor
Posts: 450
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: Firmware update via CAN using OpenBLT

Post 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 .
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Firmware update via CAN using OpenBLT

Post 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
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
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Firmware update via CAN using OpenBLT

Post 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.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Firmware update via CAN using OpenBLT

Post 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 6609 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: 450
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: Firmware update via CAN using OpenBLT

Post by Dron_Gus »

Which option does RusEFI need?
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Firmware update via CAN using OpenBLT

Post 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.
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: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Firmware update via CAN using OpenBLT

Post by AndreyB »

Made some progress but does not work with my Proteus so far

https://github.com/rusefi/rusefi/commit/dca64a6b4e3de51b3fb1887088bc55b58db125e4
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: 450
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: Firmware update via CAN using OpenBLT

Post 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
Post Reply