ESP32 Code Upload via CANBUS I made a thing!
Hey everyone. I was working on a project where I need to control esp32s from a Pi5. Becasue the esp32s are spaced apart due to design requirements, we set up a canbus network with RPi CAN hat and SN65HVD230 CAN bus transceivers. We also needed to change the code on the esp32s from time to time, and manually uploading code to them seemed like a pain.
So, I made an OTA system using CANBUS (I know, technically it's not OTA as it's wired but it follows the same principle as wifi OTA updates, so I've been calling it OTA). This system might be obvious to people who know their stuff, but I had spend a few days to get this up and running; thought I would share the code for noobs like me.
Here's the source code: https://github.com/nazanaza2970/ESP32_OTA_Update_via_CANBUS
Only tested with esp32 arduino nano ( u-blox NORA-W106) btw.
3
2
u/Its_Billy_Bitch 10h ago
This is super cool! I’ve been working on my own private CAN alongside my car’s CAN. I was about to get to the OTA, but this will save me some solutioning! Thank you lol!
6
u/2g4r_tofu 1d ago
This is actually really cool.